共用方式為


ConfigurationExtensions.AsEnumerable 方法

定義

多載

AsEnumerable(IConfiguration)

取得 中的 IConfiguration索引鍵/值組列舉。

AsEnumerable(IConfiguration, Boolean)

取得 中的 IConfiguration索引鍵/值組列舉。

AsEnumerable(IConfiguration)

來源:
ConfigurationExtensions.cs
來源:
ConfigurationExtensions.cs
來源:
ConfigurationExtensions.cs
來源:
ConfigurationExtensions.cs

取得 中的 IConfiguration索引鍵/值組列舉。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ AsEnumerable(Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
public static System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>> AsEnumerable (this Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AsEnumerable : Microsoft.Extensions.Configuration.IConfiguration -> seq<System.Collections.Generic.KeyValuePair<string, string>>
<Extension()>
Public Function AsEnumerable (configuration As IConfiguration) As IEnumerable(Of KeyValuePair(Of String, String))

參數

configuration
IConfiguration

要列舉的 IConfiguration

傳回

索引鍵/值組的列舉。

適用於

AsEnumerable(IConfiguration, Boolean)

來源:
ConfigurationExtensions.cs
來源:
ConfigurationExtensions.cs
來源:
ConfigurationExtensions.cs
來源:
ConfigurationExtensions.cs

取得 中的 IConfiguration索引鍵/值組列舉。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ AsEnumerable(Microsoft::Extensions::Configuration::IConfiguration ^ configuration, bool makePathsRelative);
public static System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>> AsEnumerable (this Microsoft.Extensions.Configuration.IConfiguration configuration, bool makePathsRelative);
static member AsEnumerable : Microsoft.Extensions.Configuration.IConfiguration * bool -> seq<System.Collections.Generic.KeyValuePair<string, string>>
<Extension()>
Public Iterator Function AsEnumerable (configuration As IConfiguration, makePathsRelative As Boolean) As IEnumerable(Of KeyValuePair(Of String, String))

參數

configuration
IConfiguration

要列舉的 IConfiguration

makePathsRelative
Boolean

true 從傳回的子索引鍵修剪目前組態的路徑;否則為 false

傳回

索引鍵/值組的列舉。

適用於