ConfigurationExtensions.AsEnumerable Método

Definición

Sobrecargas

AsEnumerable(IConfiguration)

Obtenga la enumeración de pares clave-valor dentro de IConfiguration.

AsEnumerable(IConfiguration, Boolean)

Obtiene la enumeración de pares clave-valor dentro de IConfiguration.

AsEnumerable(IConfiguration)

Source:
ConfigurationExtensions.cs
Source:
ConfigurationExtensions.cs
Source:
ConfigurationExtensions.cs
Source:
ConfigurationExtensions.cs

Obtenga la enumeración de pares clave-valor dentro de 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))

Parámetros

configuration
IConfiguration

IConfiguration que se van a enumerar.

Devoluciones

Enumeración de pares clave-valor.

Se aplica a

AsEnumerable(IConfiguration, Boolean)

Source:
ConfigurationExtensions.cs
Source:
ConfigurationExtensions.cs
Source:
ConfigurationExtensions.cs
Source:
ConfigurationExtensions.cs

Obtiene la enumeración de pares clave-valor dentro de 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))

Parámetros

configuration
IConfiguration

IConfiguration que se van a enumerar.

makePathsRelative
Boolean

true para recortar la ruta de acceso de la configuración actual de las claves secundarias devueltas; de lo contrario, false.

Devoluciones

Enumeración de pares clave-valor.

Se aplica a