SectionInformation.GetRawXml Método

Definição

Devolve um objeto nó XML que representa o objeto de secção de configuração associado.

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

Devoluções

A representação XML para esta secção de configuração.

Exceções

Este objeto de configuração está bloqueado e não pode ser editado.

Exemplos

O exemplo seguinte mostra como usar o GetRawXml método.

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

Aplica-se a