ResourceProviderFactory::CreateLocalResourceProvider Method (String^)

 

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

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

public:
virtual IResourceProvider^ CreateLocalResourceProvider(
	String^ virtualPath
) abstract

Parameters

virtualPath
Type: System::String^

The path to a resource file.

Return Value

Type: System.Web.Compilation::IResourceProvider^

A local resource provider.

When overridden in a derived class, this method returns an IResourceProvider object for the given virtualPath parameter. The method could be implemented such that virtualPath maps to a resource file.

The following code example shows a customized resource provider factory that implements the CreateLocalResourceProvider 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: