XdmWriter.Serialize Method (IEnumerable<XPathItem>, XmlWriter)XdmWriter.Serialize Method (IEnumerable(Of XPathItem), XmlWriter)XdmWriter::Serialize Method (IEnumerable<XPathItem^>^, XmlWriter^)
Serializes an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> instance to an XmlWriterXmlWriterXmlWriter.
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
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 )
Parameters
- items
Type: System.Collections.Generic.IEnumerable<T>System.Collections.Generic.IEnumerable(Of T)System.Collections.Generic::IEnumerable<T>^
- writer
Type: System.Xml.XmlWriterSystem.Xml.XmlWriterSystem.Xml::XmlWriter^
The writer to serialize to.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
items or writer is null
a null reference (Nothing in Visual Basic)
nullptr .
|
XdmExceptionXdmExceptionXdmException | An error occurred during serialization. |