System.Web.UI.TemplateControl.GetGlobalResourceObject Method

Gets an application-level resource object based on the specified System.Web.Compilation.ResourceExpressionFields.ClassKey and System.Web.Compilation.ResourceExpressionFields.ResourceKey properties, object type, and property name of the resource.

Syntax

protected object GetGlobalResourceObject (string className, string resourceKey, Type objType, string propName)

Parameters

className
A string representing a System.Web.Compilation.ResourceExpressionFields.ClassKey.
resourceKey
A string representing a System.Web.Compilation.ResourceExpressionFields.ResourceKey.
objType
The type of object in the resource to get.
propName
The property name of the object to get.

Returns

An object representing the requested resource object; otherwise, null.

Remarks

Application-level resources are stored in the App_GlobalResources folder. For more information, see Resources in ASP.NET Applications.

Requirements

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