MemoryConfigurationProvider 類別

定義

IConfigurationProvider 的記憶體內實作In-memory implementation of IConfigurationProvider

public ref class MemoryConfigurationProvider : Microsoft::Extensions::Configuration::ConfigurationProvider, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>>
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))
繼承
MemoryConfigurationProvider
實作

建構函式

MemoryConfigurationProvider(MemoryConfigurationSource)

從來源初始化新的執行個體。Initialize a new instance from the source.

屬性

Data

此提供者的組態索引碼值組。The configuration key value pairs for this provider.

(繼承來源 ConfigurationProvider)

方法

Add(String, String)

新增索引鍵和值組。Add a new key and value pair.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetChildKeys(IEnumerable<String>, String)

傳回此提供者具有的索引鍵清單。Returns the list of keys that this provider has.

(繼承來源 ConfigurationProvider)
GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through the collection.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetReloadToken()

傳回可在重新載入此提供者時用於接聽的 IChangeTokenReturns a IChangeToken that can be used to listen when this provider is reloaded.

(繼承來源 ConfigurationProvider)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
Load()

載入 (或重新載入) 此提供者的資料。Loads (or reloads) the data for this provider.

(繼承來源 ConfigurationProvider)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnReload()

觸發重新載入變更權杖,並建立一個新權杖。Triggers the reload change token and creates a new one.

(繼承來源 ConfigurationProvider)
Set(String, String)

設定指定索引鍵的值。Sets a value for a given key.

(繼承來源 ConfigurationProvider)
ToString()

產生表示此提供者名稱和相關詳細資料的字串。Generates a string representing this provider name and relevant details.

(繼承來源 ConfigurationProvider)
TryGet(String, String)

嘗試尋找具有指定索引鍵的值,如果找到一個,則傳回 true;否則傳回 false。Attempts to find a value with the given key, returns true if one is found, false otherwise.

(繼承來源 ConfigurationProvider)

明確介面實作

IEnumerable.GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through the collection.

擴充方法

CopyToDataTable<T>(IEnumerable<T>)

根據輸入 DataTable 物件 (其中泛型參數 TDataRow) 傳回包含 IEnumerable<T> 物件複本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

適用於