SectionInformation.GetRawXml Méthode

Définition

Renvoie un objet de nœud XML qui représente l’objet de section de configuration associé.

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

Retours

Représentation XML pour cette section de configuration.

Exceptions

Cet objet de configuration est verrouillé et ne peut pas être modifié.

Exemples

L’exemple suivant montre comment utiliser la GetRawXml méthode.

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

S’applique à