Gets an ElementInformation object that contains the non-customizable information and functionality of the ConfigurationElement object.
Assembly: System.Configuration (in System.Configuration.dll)
Syntax
An ElementInformation that contains the non-customizable information and functionality of the ConfigurationElement.
Public ReadOnly Property ElementInformation As [%$TOPIC/ms134142_en-us_VS_110_3_0_0_0_0%]
public [%$TOPIC/ms134142_en-us_VS_110_3_0_1_0_0%] ElementInformation { get; }
public:
property [%$TOPIC/ms134142_en-us_VS_110_3_0_2_0_0%]^ ElementInformation {
[%$TOPIC/ms134142_en-us_VS_110_3_0_2_0_1%]^ get ();
}
member ElementInformation : [%$TOPIC/ms134142_en-us_VS_110_3_0_3_0_0%] with get
Property Value
Type: System.ConfigurationElementInformationAn ElementInformation that contains the non-customizable information and functionality of the ConfigurationElement.
Examples
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
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;
}
Platforms
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.