ConfigurationSectionGroup.IsDeclarationRequired 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得一個值,表示是否需要這個 ConfigurationSectionGroup 物件宣告。
public:
property bool IsDeclarationRequired { bool get(); };
public bool IsDeclarationRequired { get; }
member this.IsDeclarationRequired : bool
Public ReadOnly Property IsDeclarationRequired As Boolean
屬性值
true如果需要此ConfigurationSectionGroup聲明;否則,。 false
範例
以下程式碼範例決定是否需要此宣告實例 ConfigurationSectionGroup 。
indent("Is Group Required?: " +
sectionGroup.IsDeclarationRequired);
indent("Is Group Required?: " + _
sectionGroup.IsDeclarationRequired.ToString())