XdmWriter.Create Method (Stream, XmlNameTable)XdmWriter.Create Method (Stream, XmlNameTable)XdmWriter::Create Method (Stream^, XmlNameTable^)

Creates an XdmWriterXdmWriterXdmWriter instance using the specified stream and XML name table.

Syntax

Public Shared Function Create( _
    stream As System.IO.Stream, _
    nameTable As System.Xml.XmlNameTable _
) As XdmWriter
public static XdmWriter Create(
    System.IO.Stream stream,
    System.Xml.XmlNameTable nameTable
)
public:
static XdmWriter^ Create(
    System.IO::Stream^ stream, 
    System.Xml::XmlNameTable^ nameTable
)
 

Parameters

stream

Type: System.IO.StreamSystem.IO.StreamSystem.IO::Stream^

The StreamStreamStream to which you want to write.

nameTable

Type: System.Xml.XmlNameTableSystem.Xml.XmlNameTableSystem.Xml::XmlNameTable^

The name table used for element names.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException stream or nameTable is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmExceptionThere is an error with the serialization configuration.

Remarks

An XdmWriterSettingsXdmWriterSettingsXdmWriterSettings object with default settings is used to create the writer. If you wish to specify the serialization parameters on the created writer, use the overload that takes an XdmWriterSettingsXdmWriterSettingsXdmWriterSettings object as one of its arguments, and pass in an XdmWriterSettingsXdmWriterSettingsXdmWriterSettings object with the correct settings.