MemoryConfigurationProvider MemoryConfigurationProvider MemoryConfigurationProvider Class

Definition

In-memory implementation of IConfigurationProvider

public class MemoryConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>>
type MemoryConfigurationProvider = class
    inherit ConfigurationProvider
    interface seq<KeyValuePair<string, string>>
    interface IEnumerable
Public Class MemoryConfigurationProvider
Inherits ConfigurationProvider
Implements IEnumerable(Of KeyValuePair(Of String, String))
Inheritance
MemoryConfigurationProviderMemoryConfigurationProviderMemoryConfigurationProvider
Implements

Constructors

MemoryConfigurationProvider(MemoryConfigurationSource) MemoryConfigurationProvider(MemoryConfigurationSource) MemoryConfigurationProvider(MemoryConfigurationSource)

Initialize a new instance from the source.

Methods

Add(String, String) Add(String, String) Add(String, String)

Add a new key and value pair.

GetChildKeys(IEnumerable<String>, String) GetChildKeys(IEnumerable<String>, String) GetChildKeys(IEnumerable<String>, String)

Returns the list of keys that this provider has.

(Inherited from ConfigurationProvider)
GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

GetReloadToken() GetReloadToken() GetReloadToken()

Returns a IChangeToken that can be used to listen when this provider is reloaded.

(Inherited from ConfigurationProvider)
Load() Load() Load()

Loads (or reloads) the data for this provider.

(Inherited from ConfigurationProvider)
OnReload() OnReload() OnReload()

Triggers the reload change token and creates a new one.

(Inherited from ConfigurationProvider)
Set(String, String) Set(String, String) Set(String, String)

Sets a value for a given key.

(Inherited from ConfigurationProvider)
TryGet(String, String) TryGet(String, String) TryGet(String, String)

Attempts to find a value with the given key, returns true if one is found, false otherwise.

(Inherited from ConfigurationProvider)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the collection.

Properties

Data Data Data

The configuration key value pairs for this provider.

(Inherited from ConfigurationProvider)

Extension Methods

GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext) GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext) GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext)

Gets an instance of IWrapperProvider for the supplied type.

FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType) FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType) FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType)

Converts the generic IEnumerable<T> to a IEnumerable<T> and finds the first HtmlSymbol with type type.

GetContent(IEnumerable<ISymbol>, SourceLocation) GetContent(IEnumerable<ISymbol>, SourceLocation) GetContent(IEnumerable<ISymbol>, SourceLocation)

Applies to