Gets a value that indicates whether this ConfigurationSectionGroup object is declared.
Public ReadOnly Property IsDeclared As Boolean
Dim instance As ConfigurationSectionGroup Dim value As Boolean value = instance.IsDeclared
public bool IsDeclared { get; }
public: property bool IsDeclared { bool get (); }
public function get IsDeclared () : boolean
If the section group is declared in the configuration file, the IsDeclared property returns true.
The IsDeclared property returns false if this section is inherited from Machine.config or a parent configuration file.
The following code example determines whether this instance of ConfigurationSectionGroup is declared. This is part of a larger example that is provided in the overview for the ConfigurationSectionGroup class.
indent("Is Group Declared?: " + _ sectionGroup.IsDeclared.ToString())
indent("Is Group Declared?: " + sectionGroup.IsDeclared);
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98