.NET Framework Class Library
ConfigurationElement..::.ElementInformation Property

Updated: November 2007

Gets an ElementInformation object that contains the non-customizable information and functionality of the ConfigurationElement object.

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

Visual Basic (Declaration)
Public ReadOnly Property ElementInformation As ElementInformation
Visual Basic (Usage)
Dim instance As ConfigurationElement
Dim value As ElementInformation

value = instance.ElementInformation
C#
public ElementInformation ElementInformation { get; }
Visual C++
public:
property ElementInformation^ ElementInformation {
    ElementInformation^ get ();
}
J#
/** @property */
public ElementInformation get_ElementInformation()
JScript
public function get ElementInformation () : ElementInformation

Property Value

Type: System.Configuration..::.ElementInformation

An ElementInformation that contains the non-customizable information and functionality of the ConfigurationElement.

The following example shows how to use the ElementInformation property.

Visual Basic
Public Shared Function GetElementInformation() _
As ElementInformation

    ' Get the current configuration file.
    Dim config _
    As System.Configuration.Configuration = _
    ConfigurationManager.OpenExeConfiguration( _
    ConfigurationUserLevel.None)

    ' Get the section.
    Dim section As UrlsSection = CType( _
    config.GetSection("MyUrls"), UrlsSection)

    ' Get the element.
    Dim url As UrlConfigElement = _
    section.Simple

    Dim eInfo As ElementInformation = _
    url.ElementInformation

    Return eInfo

End Function 'GetElementInformation     

C#
static public ElementInformation
    GetElementInformation()
{

    // Get the current configuration file.
    System.Configuration.Configuration config =
            ConfigurationManager.OpenExeConfiguration(
            ConfigurationUserLevel.None);

    // Get the section.
    UrlsSection section =
        (UrlsSection)config.GetSection("MyUrls");

    // Get the element.
    UrlConfigElement url = section.Simple;

    ElementInformation eInfo =
        url.ElementInformation;

    return eInfo;

}

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