ConfigurationExtensions.Exists(IConfigurationSection) Methode

Definition

Bestimmt, ob der Abschnitt über untergeordnete Value Elemente verfügt.

public:
[System::Runtime::CompilerServices::Extension]
 static bool Exists(Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static bool Exists(this Microsoft.Extensions.Configuration.IConfigurationSection? section);
static member Exists : Microsoft.Extensions.Configuration.IConfigurationSection -> bool
<Extension()>
Public Function Exists (section As IConfigurationSection) As Boolean

Parameter

section
IConfigurationSection

Der abschnitt, der aufgezählt werden soll.

Gibt zurück

truewenn der Abschnitt Werte oder untergeordnete Elemente enthält; andernfalls . false

Gilt für: