ElementInformation.LineNumber プロパティ
アセンブリ: System.Configuration (system.configuration.dll 内)

public int LineNumber { get; }
構成ファイル内の、関連付けられている ConfigurationElement オブジェクトが定義されている位置の行番号。

LineNumber プロパティを使用する方法を次のコード例に示します。
Protected Overrides Function SerializeSection( _ ByVal parentElement As ConfigurationElement, _ ByVal name As String, _ ByVal saveMode As ConfigurationSaveMode) As String Dim s As String = _ MyBase.SerializeSection(parentElement, _ name, saveMode) ' Enter your custom processing code here. If _displayIt Then Console.WriteLine( _ "UrlsSection.SerializeSection({0}, {1}, {2}) called = {3}", _ parentElement.ToString(), _ name, saveMode.ToString(), s) End If Return s End Function 'SerializeSection
protected override string SerializeSection( ConfigurationElement parentElement, string name, ConfigurationSaveMode saveMode) { string s = base.SerializeSection(parentElement, name, saveMode); // Enter your custom processing code here. if (_displayIt) { Console.WriteLine( "UrlsSection.SerializeSection({0}, {1}, {2}) called = {3}", parentElement.ToString(), name, saveMode.ToString(), s); } return s; }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からElementInformation.LineNumber プロパティを検索する場合は、下記のリンクをクリックしてください。

- ElementInformation.LineNumber プロパティのページへのリンク