Utility method to convert and XDocument to an XmlDocument

Namespace: BrightstarDB.Utils
Assembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)

Syntax

C#
public static XmlDocument AsXmlDocument(
	this XDocument document
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function AsXmlDocument ( 
	document As XDocument
) As XmlDocument
Visual C++
public:
[ExtensionAttribute]
static XmlDocument^ AsXmlDocument(
	XDocument^ document
)
F#
static member AsXmlDocument : 
        document : XDocument -> XmlDocument 

Parameters

document
Type: System.Xml.Linq..::..XDocument
The XDocument to be converted

Return Value

Type: XmlDocument
The XmlDocument representation of the provided XDocument

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also