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);
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

適用於