ConfigurationElement.ElementInformation プロパティ
アセンブリ: System.Configuration (system.configuration.dll 内)
構文Dim instance As ConfigurationElement Dim value As ElementInformation value = instance.ElementInformation
ConfigurationElement オブジェクトのカスタマイズできない情報と機能を格納する ElementInformation オブジェクト。
使用例ElementInformation プロパティを使用する方法の例を次に示します。
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; }
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- ConfigurationElement.ElementInformation プロパティのページへのリンク