MemoryConfigurationBuilderExtensions.AddInMemoryCollection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddInMemoryCollection(IConfigurationBuilder) |
將記憶體組態提供者新增至 |
AddInMemoryCollection(IConfigurationBuilder, IEnumerable<KeyValuePair<String,String>>) |
將記憶體組態提供者新增至 |
AddInMemoryCollection(IConfigurationBuilder)
將記憶體組態提供者新增至 configurationBuilder
。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddInMemoryCollection(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ configurationBuilder);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddInMemoryCollection (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder);
static member AddInMemoryCollection : Microsoft.Extensions.Configuration.IConfigurationBuilder -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddInMemoryCollection (configurationBuilder As IConfigurationBuilder) As IConfigurationBuilder
參數
- configurationBuilder
- IConfigurationBuilder
要新增的目標 IConfigurationBuilder。
傳回
適用於
AddInMemoryCollection(IConfigurationBuilder, IEnumerable<KeyValuePair<String,String>>)
將記憶體組態提供者新增至 configurationBuilder
。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddInMemoryCollection(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ configurationBuilder, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ initialData);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddInMemoryCollection (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> initialData);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddInMemoryCollection (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>>? initialData);
static member AddInMemoryCollection : Microsoft.Extensions.Configuration.IConfigurationBuilder * seq<System.Collections.Generic.KeyValuePair<string, string>> -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddInMemoryCollection (configurationBuilder As IConfigurationBuilder, initialData As IEnumerable(Of KeyValuePair(Of String, String))) As IConfigurationBuilder
參數
- configurationBuilder
- IConfigurationBuilder
要新增的目標 IConfigurationBuilder。
- initialData
- IEnumerable<KeyValuePair<String,String>>
要新增至記憶體設定提供者的資料。