This documentation is archived and is not being maintained.

HttpContext.GetGlobalResourceObject Method (String, String, CultureInfo)

Note: This method is new in the .NET Framework version 2.0.

Gets an application-level resource object based on the specified ClassKey and ResourceKey properties and CultureInfo object.

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

public static Object GetGlobalResourceObject (
	string classKey,
	string resourceKey,
	CultureInfo culture
public static Object GetGlobalResourceObject (
	String classKey, 
	String resourceKey, 
	CultureInfo culture
public static function GetGlobalResourceObject (
	classKey : String, 
	resourceKey : String, 
	culture : CultureInfo
) : Object



A string that represents the ClassKey of the requested resource object.


A string that represents a ResourceKey of the requested resource object.


A string that represents the CultureInfo of the requested resource.

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.

Exception typeCondition


A resource object with the specified classKey was not found.

The CultureInfo object represents the culture for which the resource was localized. If the resource is not localized for this culture, the lookup will follow a fallback process to locate an appropriate resource. For more information, see Packaging and Deploying Resources.

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0