Κοινή χρήση μέσω


ConfigurationExtensions.AsEnumerable Method

Definition

Overloads

AsEnumerable(IConfiguration)

Get the enumeration of key value pairs within the IConfiguration

AsEnumerable(IConfiguration, Boolean)

Get the enumeration of key value pairs within the IConfiguration

AsEnumerable(IConfiguration)

Source:
ConfigurationExtensions.cs
Source:
ConfigurationExtensions.cs

Get the enumeration of key value pairs within the 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))

Parameters

configuration
IConfiguration

The configuration to enumerate.

Returns

An enumeration of key value pairs.

Applies to

AsEnumerable(IConfiguration, Boolean)

Source:
ConfigurationExtensions.cs
Source:
ConfigurationExtensions.cs

Get the enumeration of key value pairs within the 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))

Parameters

configuration
IConfiguration

The configuration to enumerate.

makePathsRelative
Boolean

true to trim the current configuration's path from the front of the returned child keys.

Returns

An enumeration of key value pairs.

Applies to