asp.net.ph

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

System.Web Namespace   TemplateControl Class


.NET Framework version 2.0

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

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

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

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

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

Parameters

classKey
A string that represents the ClassKey of the requested resource object.
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 application-level resource object, localized for the specified culture. If a matching resource object is found, but not a resourceKey, a null reference ( Nothing in Visual Basic ) is returned.

Exceptions


Exception Type Condition
MissingManifestResourceException Occurs when a resource object with the specified classKey was not found.

Example

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

 Show me 

See Also

GetGlobalResourceObject Method Overload List   TemplateControl Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph