ConfigurationExtensions.AsEnumerable Method
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.
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 |
- 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 configuration to enumerate.
Returns
An enumeration of key value pairs.
Applies to
.NET 9 (package-provided) a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- 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, 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
.NET 9 (package-provided) a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: