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)

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 Iterator Function AsEnumerable (configuration As IConfiguration) As IEnumerable(Of KeyValuePair(Of String, String))
<Extension()>
Public Function AsEnumerable (configuration As IConfiguration) As IEnumerable(Of KeyValuePair(Of String, String))

Parameters

configuration
IConfiguration

The IConfiguration to enumerate.

Returns

IEnumerable<KeyValuePair<String,String>>

An enumeration of key value pairs.

AsEnumerable(IConfiguration, Boolean)

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))
<Extension()>
Public Function AsEnumerable (configuration As IConfiguration, makePathsRelative As Boolean) As IEnumerable(Of KeyValuePair(Of String, String))

Parameters

configuration
IConfiguration

The IConfiguration to enumerate.

makePathsRelative
Boolean

If true, the child keys returned will have the current configuration's Path trimmed from the front.

Returns

IEnumerable<KeyValuePair<String,String>>

An enumeration of key value pairs.

Applies to