共用方式為


MemoryConfigurationBuilderExtensions.AddInMemoryCollection 方法

定義

多載

AddInMemoryCollection(IConfigurationBuilder)

將記憶體組態提供者新增至 configurationBuilder

AddInMemoryCollection(IConfigurationBuilder, IEnumerable<KeyValuePair<String,String>>)

將記憶體組態提供者新增至 configurationBuilder

AddInMemoryCollection(IConfigurationBuilder)

來源:
MemoryConfigurationBuilderExtensions.cs
來源:
MemoryConfigurationBuilderExtensions.cs
來源:
MemoryConfigurationBuilderExtensions.cs

將記憶體組態提供者新增至 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

傳回

IConfigurationBuilder

適用於

AddInMemoryCollection(IConfigurationBuilder, IEnumerable<KeyValuePair<String,String>>)

來源:
MemoryConfigurationBuilderExtensions.cs
來源:
MemoryConfigurationBuilderExtensions.cs
來源:
MemoryConfigurationBuilderExtensions.cs

將記憶體組態提供者新增至 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>>

要新增至記憶體設定提供者的資料。

傳回

IConfigurationBuilder

適用於