語言

ConfigurationExtensions.Exists(IConfigurationSection) 方法

定義

判斷該部門 Value 是否有子女。

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

參數

section
IConfigurationSection

要列舉的章節。

傳回

true如果該區段有值或子節點;否則,。 false

適用於