Bagikan melalui


ConfigurationExtensions.AsEnumerable Metode

Definisi

Overload

AsEnumerable(IConfiguration)

Dapatkan enumerasi pasangan kunci-nilai dalam IConfiguration.

AsEnumerable(IConfiguration, Boolean)

Mendapatkan enumerasi pasangan kunci-nilai dalam IConfiguration.

AsEnumerable(IConfiguration)

Sumber:
ConfigurationExtensions.cs
Sumber:
ConfigurationExtensions.cs
Sumber:
ConfigurationExtensions.cs
Sumber:
ConfigurationExtensions.cs

Dapatkan enumerasi pasangan kunci-nilai dalam 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))

Parameter

configuration
IConfiguration

Untuk IConfiguration menghitung.

Mengembalikan

Enumerasi pasangan kunci-nilai.

Berlaku untuk

AsEnumerable(IConfiguration, Boolean)

Sumber:
ConfigurationExtensions.cs
Sumber:
ConfigurationExtensions.cs
Sumber:
ConfigurationExtensions.cs
Sumber:
ConfigurationExtensions.cs

Mendapatkan enumerasi pasangan kunci-nilai dalam 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))

Parameter

configuration
IConfiguration

Untuk IConfiguration menghitung.

makePathsRelative
Boolean

true untuk memangkas Jalur konfigurasi saat ini dari kunci anak yang dikembalikan; jika tidak, false.

Mengembalikan

Enumerasi pasangan kunci-nilai.

Berlaku untuk