SectionInformation.GetRawXml Metoda

Definice

Vrátí objekt uzlu XML, který představuje přidružený objekt configuration-section.

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

Návraty

Reprezentace XML pro tuto část konfigurace.

Výjimky

Tento objekt konfigurace je uzamčen a nelze ho upravovat.

Příklady

Následující příklad ukazuje, jak používat metodu 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

Platí pro