ConfigurationSectionGroup.IsDeclarationRequired 属性

定义

获取一个值,指示是否需要声明此 ConfigurationSectionGroup 对象。

public:
 property bool IsDeclarationRequired { bool get(); };
public bool IsDeclarationRequired { get; }
member this.IsDeclarationRequired : bool
Public ReadOnly Property IsDeclarationRequired As Boolean

属性值

如果需要声明此 ConfigurationSectionGroup,则为 true;否则为 false

示例

下面的代码示例确定是否需要此声明实例 ConfigurationSectionGroup

indent("Is Group Required?: " + 
    sectionGroup.IsDeclarationRequired);
indent("Is Group Required?: " + _
   sectionGroup.IsDeclarationRequired.ToString())

适用于

另请参阅