WebAssemblyHostConfiguration Class
Definition
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.
WebAssemblyHostConfiguration is a class that implements the interface of an IConfiguration, IConfigurationRoot, and IConfigurationBuilder. It can be used to simulatneously build and read from a configuration object.
public ref class WebAssemblyHostConfiguration : Microsoft::Extensions::Configuration::IConfigurationBuilder, Microsoft::Extensions::Configuration::IConfigurationRoot
public class WebAssemblyHostConfiguration : Microsoft.Extensions.Configuration.IConfigurationBuilder, Microsoft.Extensions.Configuration.IConfigurationRoot
type WebAssemblyHostConfiguration = class
interface IConfiguration
interface IConfigurationRoot
interface IConfigurationBuilder
Public Class WebAssemblyHostConfiguration
Implements IConfigurationBuilder, IConfigurationRoot
- Inheritance
-
WebAssemblyHostConfiguration
- Implements
Constructors
WebAssemblyHostConfiguration() |
Properties
Item[String] | Gets or sets a configuration value. |
Methods
Add(IConfigurationSource) |
Adds a new configuration source, retrieves the provider for the source, and adds a change listener that triggers a reload of the provider whenever a change is detected. |
Build() |
Builds an IConfiguration with keys and values from the set of providers registered in Providers. |
Dispose() | System.Object.Dispose |
GetReloadToken() |
Returns a IChangeToken that can be used to observe when this configuration is reloaded. |
GetSection(String) |
Gets a configuration sub-section with the specified key. |
Reload() |
Force the configuration values to be reloaded from the underlying sources. |
Explicit Interface Implementations
IConfiguration.GetChildren() |
Gets the immediate descendant configuration sub-sections. |
IConfigurationBuilder.Properties |
Gets a key/value collection that can be used to share data between the IConfigurationBuilder and the registered IConfigurationProvider instances. |
IConfigurationBuilder.Sources |
Gets the sources used to obtain configuration values. |
IConfigurationRoot.Providers |
Gets the providers used to obtain configuration values. |