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

適用於