Bahasa

SectionInformation.GetRawXml Metode

Definisi

Mengembalikan objek simpul XML yang mewakili objek bagian konfigurasi terkait.

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

Mengembalikan

Representasi XML untuk bagian konfigurasi ini.

Pengecualian

Objek konfigurasi ini terkunci dan tidak dapat diedit.

Contoh

Contoh berikut menunjukkan cara menggunakan GetRawXml metode .

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

Berlaku untuk