.NET Framework Class Library
ConfigurationSectionGroup..::.IsDeclarationRequired Property

Updated: November 2007

Gets a value that indicates whether this ConfigurationSectionGroup object declaration is required.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

Visual Basic (Declaration)
Public ReadOnly Property IsDeclarationRequired As Boolean
Visual Basic (Usage)
Dim instance As ConfigurationSectionGroup
Dim value As Boolean

value = instance.IsDeclarationRequired
C#
public bool IsDeclarationRequired { get; }
Visual C++
public:
property bool IsDeclarationRequired {
    bool get ();
}
J#
/** @property */
public boolean get_IsDeclarationRequired()
JScript
public function get IsDeclarationRequired () : boolean

Property Value

Type: System..::.Boolean

true if this ConfigurationSectionGroup declaration is required; otherwise, false.

The following code example determines whether this instance of the ConfigurationSectionGroup declaration is required.

Visual Basic
Console.WriteLine((getSpacer() + _
"Is Group Required?: " + _
sectionGroup.IsDeclarationRequired.ToString()))

C#
Console.WriteLine(getSpacer() +
    "Is Group Required?: " +
    sectionGroup.IsDeclarationRequired);            

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Page view tracker