Udostępnij przez


ConfigurationExtensions.Exists(IConfigurationSection) Metoda

Definicja

Określa, czy sekcja ma element podrzędny Value lub ma elementy podrzędne.

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

Parametry

section
IConfigurationSection

Sekcja do wyliczenia.

Zwraca

true jeśli sekcja zawiera wartości lub elementy podrzędne; w przeciwnym razie , false.

Dotyczy