The Resource Provider class provides the base interface for accessing resources. This provider interface handles loading resources, caching them (using standard Resource Manager functionality) and allowing access to resources via GetObject.
This provider supports global and local resources, explicit expressions as well as implicit expressions (IImplicitResourceProvider).
There's also a design time implementation to provide Generate LocalResources support from ASP.NET Web Form designer.
public class DbResourceProvider : object, IResourceProvider, IImplicitResourceProvider, IWestWindResourceProvider
Member | Description | |
---|---|---|
Constructor | Default constructor - only captures the parameter values | |
ProviderLoaded | Flag that can be read to see if the resource provider is loaded | |
ClearResourceCache | Releases all resources and forces resources to be reloaded from storage on the next GetResourceSet public sealed void ClearResourceCache();
|
|
ResourceManager | IResourceProvider interface - required to provide an instance to an ResourceManager object. | |
ResourceReader | Required instance of the ResourceReader for this provider. Part of the IResourceProvider interface. The reader is responsible for feeding the Resource data from a ResourceSet. The interface basically walks an enumerable interface by ResourceId. |