FileConfigurationProvider Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the base class for file-based ConfigurationProvider providers.
public ref class FileConfigurationProvider abstract : Microsoft::Extensions::Configuration::ConfigurationProvider, IDisposable
public abstract class FileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider, IDisposable
type FileConfigurationProvider = class
inherit ConfigurationProvider
interface IDisposable
Public MustInherit Class FileConfigurationProvider
Inherits ConfigurationProvider
Implements IDisposable
- Inheritance
- Derived
- Implements
For more information and examples, see File configuration provider.
File |
Initializes a new instance with the specified source. |
Data |
Gets or sets the configuration key-value pairs for this provider. (Inherited from ConfigurationProvider) |
Source |
Gets the source settings for this provider. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Dispose(Boolean) |
Disposes the provider. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Returns the list of keys that this provider has. (Inherited from ConfigurationProvider) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Returns a IChangeToken that can be used to listen when this provider is reloaded. (Inherited from ConfigurationProvider) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Load() |
Loads the contents of the file at Path. |
Load(Stream) |
Loads this provider's data from a stream. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
On |
Triggers the reload change token and creates a new one. (Inherited from ConfigurationProvider) |
Set(String, String) |
Sets a value for a given key. (Inherited from ConfigurationProvider) |
To |
Generates a string representing this provider name and relevant details. |
Try |
Attempts to find a value with the given key. (Inherited from ConfigurationProvider) |
Produkt | Versionen |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: