TemplateControl.GetGlobalResourceObject Method (String, String, Type, String)

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

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

protected:
Object^ GetGlobalResourceObject (
	String^ className, 
	String^ resourceKey, 
	Type^ objType, 
	String^ propName
)
protected Object GetGlobalResourceObject (
	String className, 
	String resourceKey, 
	Type objType, 
	String propName
)
protected function GetGlobalResourceObject (
	className : String, 
	resourceKey : String, 
	objType : Type, 
	propName : String
) : Object
Not applicable.

Parameters

className

A string representing a ClassKey.

resourceKey

A string representing a ResourceKey.

objType

The type of object in the resource to get.

propName

The property name of the object to get.

Return Value

An object representing the requested resource object; otherwise, a null reference (Nothing in Visual Basic).

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: