asp.net.ph

TemplateControl.GetLocalResourceObject Method ( String, Type, String )

System.Web Namespace   TemplateControl Class


.NET Framework version 2.0

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

[ VB ]
Protected Shared Function GetLocalResourceObject ( _
   resourceKey As String, _
   objType As Type, _
   propName As String _
) As Object

[ C# ]
protected Object GetLocalResourceObject (
   string resourceKey,
   Type objType,
   string propName
)

[ C++ ]
protected:
static Object^ GetLocalResourceObject (
   String^ resourceKey,
   Type^ objType,
   String^ propName
)

[ JScript ]
protected Object GetLocalResourceObject (
   String resourceKey,
   Type objType,
   String propName
)

Parameters

resourceKey
A string that represents the ResourceKey of the requested resource object.
objType
The type of the resource object to get.
propName
A string that represents the property name of the resource object to get.

Return Value

An object that represents the requested page-level resource object; otherwise, a null reference ( Nothing in Visual Basic ) is returned.

Exceptions


Exception Type Condition
InvalidOperationException The resource class for the page was not found.

Example

The following example illustrates using one of the overload versions of the GetLocalResourceObject method.

 Show me 

See Also

GetLocalResourceObject Method Overload List   TemplateControl Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note