XmlDocExtensions.SerializeToXMLString Method
Applies to v2.
Serializes to an XML string.
Namespace: Microsoft.WebMatrix.Extensibility.Editor
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function SerializeToXMLString ( _
doc As XmlDocument _
) As String
'Usage
Dim doc As XmlDocument
Dim returnValue As String
returnValue = doc.SerializeToXMLString()
public static string SerializeToXMLString(
this XmlDocument doc
)
[ExtensionAttribute]
public:
static String^ SerializeToXMLString(
XmlDocument^ doc
)
static member SerializeToXMLString :
doc:XmlDocument -> string
public static function SerializeToXMLString(
doc : XmlDocument
) : String
Parameters
doc
Type: System.Xml.XmlDocumentThe XmlDocument instance.
Return Value
Type: System.String
An XML string.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type XmlDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).