SectionInformation.GetRawXml 메서드

정의

연결된 구성 섹션 개체를 나타내는 XML 노드 개체를 반환합니다.

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

반환

String

이 구성 섹션의 XML 표현입니다.

예외

이 구성 개체가 잠겨 있어 편집할 수 없는 경우

예제

다음 예제에서는 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

적용 대상