ResourceProviderFactory::CreateGlobalResourceProvider Method (String^)

 

When overridden in a derived class, creates a global resource provider.

Namespace:   System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

public:
virtual IResourceProvider^ CreateGlobalResourceProvider(
	String^ classKey
) abstract

Parameters

classKey
Type: System::String^

The name of the resource class.

Return Value

Type: System.Web.Compilation::IResourceProvider^

A global resource provider.

When overridden in a derived class, this method returns an IResourceProvider object for the given classKey parameter. The method could be implemented such that classKey is the name of a .resx file in the App_GlobalResources folder.

The following code example shows a customized resource provider factory that implements the CreateGlobalResourceProvider method and retrieves cached values.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: