This documentation is archived and is not being maintained.

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

The IResourceProvider type exposes the following members.

  NameDescription
Public propertyResourceReaderGets an object to read resource values from a source.
Top

  NameDescription
Public methodGetObjectReturns a resource object for the key and culture.
Top

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

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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