XdmWriter.Serialize Method (IEnumerable<XPathItem>, XmlWriter)XdmWriter.Serialize Method (IEnumerable(Of XPathItem), XmlWriter)XdmWriter::Serialize Method (IEnumerable<XPathItem^>^, XmlWriter^)

Syntax

Public Shared Sub Serialize( _
    items As IEnumerable(Of System.Xml.XPath.XPathItem), _
    writer As System.Xml.XmlWriter _
)
public static void Serialize(
    IEnumerable<System.Xml.XPath.XPathItem> items,
    System.Xml.XmlWriter writer
)
public:
static void Serialize(
    IEnumerable<System.Xml.XPath::XPathItem^>^ items, 
    System.Xml::XmlWriter^ writer
)
 

Exceptions

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

Remarks

For best performance, the writer should be created with one of the overloads of the Create (Stream)Create (Stream)Create (Stream^) method.