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, and on the System.Globalization.CultureInfo object.

Syntax

public static object GetLocalResourceObject (string virtualPath, string resourceKey, System.Globalization.CultureInfo culture)

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.
culture
A string that represents the System.Globalization.CultureInfo object of the requested resource object.

Returns

An object that represents the requested local resource object, which is localized for the specified culture; otherwise null if a matching resource object is found but not a resourceKey parameter.

Remarks

If the resource is not localized for this culture, the lookup will follow a fallback process to locate an appropriate resource. For more information, see Packaging and Deploying Resources.

Requirements

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