Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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( _

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

    ' Get the element. 
    Dim url As UrlConfigElement = _

    Dim eInfo As ElementInformation = _

    Return eInfo

End Function 'GetElementInformation     

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft