Class FileXmlLocalizationProvider
Extends Xml
Implements
Inherited Members
Namespace: EPiServer.Framework.Localization.XmlResources
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public class FileXmlLocalizationProvider : XmlLocalizationProvider, IDisposable
Constructors
FileXmlLocalizationProvider(IFileProvider, IHostEnvironment)
Initializes a new instance of the File
Declaration
public FileXmlLocalizationProvider(IFileProvider virtualPathProvider, IHostEnvironment hostingEnvironment)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
virtualPathProvider | The virtual path provider. |
Microsoft. |
hostingEnvironment | The hosting environment. |
Fields
FileSystemWatchPathKey
The configKey that should be used if provider should set up a FileSystemWatcher for a physical directory path.
Declaration
public static readonly string FileSystemWatchPathKey
Field Value
Type | Description |
---|---|
System. |
PhysicalPathKey
The configKey that should be used if provider is to be used with a physical folder.
Declaration
public static readonly string PhysicalPathKey
Field Value
Type | Description |
---|---|
System. |
VirtualPathKey
The configKey that should be used if provider is to be used with a Microsoft.
Declaration
public static readonly string VirtualPathKey
Field Value
Type | Description |
---|---|
System. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
|
Finalize()
Releases unmanaged resources and performs other cleanup operations before the
File
Declaration
protected override void Finalize()
Initialize(String, NameValueCollection)
Reads the resource xml files from the location specified in config values.
Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The friendly name of the provider. |
System. |
config | A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider. |
Overrides
Remarks
If the resource files are served by a Microsoft.
Exceptions
Type | Condition |
---|---|
System. |
The name of the provider is null. |
System. |
The name of the provider has a length of zero. |
System. |
An attempt is made to call System. |
System. |
A required configuration key was missing or faulty. |