SectionInformation.GetRawXml メソッド

定義

関連付けられている構成セクション オブジェクトを表す XML ノード オブジェクトを返します。

public:
 System::String ^ GetRawXml();
public string GetRawXml ();
member this.GetRawXml : unit -> string
Public Function GetRawXml () As String

戻り値

この構成ファイルの XML 表現。

例外

この構成オブジェクトはロックされているので、編集できません。

GetRawXml メソッドを使用する方法の例を次に示します。

static public void GetSectionXml()
{
    SectionInformation sInfo =
        GetSectionInformation();

    string sectionXml =
        sInfo.GetRawXml();

    Console.WriteLine("Section xml:");
    Console.WriteLine(sectionXml);
}
Public Shared Sub GetSectionXml()

    Dim sInfo As SectionInformation = _
    GetSectionInformation()

    Dim sectionXml As String = sInfo.GetRawXml()

    Console.WriteLine("Section xml:")
    Console.WriteLine(sectionXml)

End Sub

適用対象