ConfigurationSectionGroup.IsDeclarationRequired Egenskap

Definition

Hämtar ett värde som anger om den här ConfigurationSectionGroup objektdeklarationen krävs.

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

Egenskapsvärde

trueom den här ConfigurationSectionGroup deklarationen krävs, annars . false

Exempel

Följande kodexempel avgör om den här instansen av deklarationen ConfigurationSectionGroup krävs.

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

Gäller för

Se även