XdmWriter.Serialize Method (XPathItem, XmlWriter)XdmWriter.Serialize Method (XPathItem, XmlWriter)XdmWriter::Serialize Method (XPathItem^, XmlWriter^)

Syntax

Public Shared Sub Serialize( _
    item As System.Xml.XPath.XPathItem, _
    writer As System.Xml.XmlWriter _
)
public static void Serialize(
    System.Xml.XPath.XPathItem item,
    System.Xml.XmlWriter writer
)
public:
static void Serialize(
    System.Xml.XPath::XPathItem^ item, 
    System.Xml::XmlWriter^ writer
)
 

Parameters

item

Type: System.Xml.XPath.XPathItemSystem.Xml.XPath.XPathItemSystem.Xml.XPath::XPathItem^

The item to serialize, or null a null reference (Nothing in Visual Basic) nullptr to serialize an empty document.

writer

Type: System.Xml.XmlWriterSystem.Xml.XmlWriterSystem.Xml::XmlWriter^

The writer to serialize to.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException writer is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmExceptionAn error occurred during serialization.