Export (0) Print
Expand All

TemplateControl.GetLocalResourceObject Method (String, Type, String)

Gets a page-level resource object based on the specified ResourceKey property, object type, and property name.

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

protected Object GetLocalResourceObject (
	string resourceKey,
	Type objType,
	string propName
)
protected Object GetLocalResourceObject (
	String resourceKey, 
	Type objType, 
	String propName
)
protected function GetLocalResourceObject (
	resourceKey : String, 
	objType : Type, 
	propName : String
) : Object
Not applicable.

Parameters

resourceKey

A string representing a ResourceKey.

objType

The type of the resource object to get.

propName

The property name of the resource object to get.

Return Value

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

Local resource files are stored in the App_LocalResources directory. 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:
© 2014 Microsoft