IResourceProvider Interface

 

Defines the interface a class must implement to act as a resource provider.

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

public interface class IResourceProvider

NameDescription
System_CAPS_pubpropertyResourceReader

Gets an object to read resource values from a source.

NameDescription
System_CAPS_pubmethodGetObject(String^, CultureInfo^)

Returns a resource object for the key and culture.

A resource provider facilitates the retrieving of values from a resource file. When an expression of the form <%$ Resources: classKey, resourceKey %> is encountered during page parsing, the resource provider returns the localized value for the resource. The ResourceProviderFactory class creates instances of IResourceProvider objects for use in retrieving the values.

The following code example shows a customized resource provider factory that retrieves cached values. The resource provider factory creates an instance of a class that implements IResourceProvider.

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

.NET Framework
Available since 2.0
Return to top
Show: