SectionInformation.GetRawXml Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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