Gets a page-level resource object based on the specified System.Web.Compilation.ExpressionBuilderContext.VirtualPath and System.Web.Compilation.ResourceExpressionFields.ResourceKey properties.
- 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
An object that represents the requested page-level resource object; otherwise, null if a matching resource object is found but not a resourceKey parameter.
The HttpContext.GetLocalResourceObject(string, string) method returns a local resource by using the culture that is specified in the System.Globalization.CultureInfo.CurrentUICulture property.