SectionInformation.GetRawXml Method ()

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns an XML node object that represents the associated configuration-section object.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

Public Function GetRawXml As String

Return Value

Type: System.String

The XML representation for this configuration section.

Exception Condition
InvalidOperationException

This configuration object is locked and cannot be edited.

The following example shows how to use the GetRawXml method.

Public Shared Sub GetSectionXml()

    Dim sInfo As SectionInformation = _
    GetSectionInformation()

    Dim sectionXml As String = sInfo.GetRawXml()

    Console.WriteLine("Section xml:")
    Console.WriteLine(sectionXml)

End Sub 'GetSectionXml

.NET Framework
Available since 2.0
Return to top
Show: