SectionInformation.GetRawXml Methode

Definitie

Hiermee wordt een XML-knooppuntobject geretourneerd dat het bijbehorende configuratiesectieobject vertegenwoordigt.

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

Retouren

De XML-weergave voor deze configuratiesectie.

Uitzonderingen

Dit configuratieobject is vergrendeld en kan niet worden bewerkt.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de GetRawXml methode gebruikt.

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

Van toepassing op