ConfigurationExtensions.AsEnumerable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AsEnumerable(IConfiguration) |
Get the enumeration of key-value pairs within the IConfiguration. |
AsEnumerable(IConfiguration, Boolean) |
Gets the enumeration of key-value pairs within the IConfiguration. |
AsEnumerable(IConfiguration)
- Source:
- ConfigurationExtensions.cs
- Source:
- ConfigurationExtensions.cs
- 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 IConfiguration to enumerate.
Returns
An enumeration of key-value pairs.
Applies to
AsEnumerable(IConfiguration, Boolean)
- Source:
- ConfigurationExtensions.cs
- Source:
- ConfigurationExtensions.cs
- Source:
- ConfigurationExtensions.cs
- Source:
- ConfigurationExtensions.cs
Gets 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 IConfiguration to enumerate.
- makePathsRelative
- Boolean
true
to trim the current configuration's Path from the child keys returned; otherwise, false
.
Returns
An enumeration of key-value pairs.