ConfigurationElement.ElementInformation Property

 

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)

Public ReadOnly Property ElementInformation As 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.

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     

.NET Framework
Available since 2.0
Return to top
Show: