System.Web.HttpContext.GetLocalResourceObject Method

Gets a page-level resource object based on the specified System.Web.Compilation.ExpressionBuilderContext.VirtualPath and System.Web.Compilation.ResourceExpressionFields.ResourceKey properties.

Syntax

public static object GetLocalResourceObject (string virtualPath, string resourceKey)

Parameters

virtualPath
The System.Web.Compilation.ExpressionBuilderContext.VirtualPath property for the local resource object.
resourceKey
A string that represents a System.Web.Compilation.ResourceExpressionFields.ResourceKey property of the requested resource object

Returns

An object that represents the requested page-level resource object; otherwise, null if a matching resource object is found but not a resourceKey parameter.

Remarks

The HttpContext.GetLocalResourceObject(string, string) method returns a local resource by using the culture that is specified in the System.Globalization.CultureInfo.CurrentUICulture property.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0