SectionInformation.GetRawXml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an XML node object that represents the associated configuration-section object.
public:
System::String ^ GetRawXml();
public string GetRawXml ();
member this.GetRawXml : unit -> string
Public Function GetRawXml () As String
Returns
The XML representation for this configuration section.
Exceptions
This configuration object is locked and cannot be edited.
Examples
The following example shows how to use the GetRawXml method.
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
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET