SectionInformation.GetRawXml Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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