XmlSchema.Write Method

Definition

Writes out an XML Schema.

Overloads

Write(Stream)

Writes the XML Schema to the supplied data stream.

Write(TextWriter)

Writes the XML Schema to the supplied TextWriter.

Write(XmlWriter)

Writes the XML Schema to the supplied XmlWriter.

Write(Stream, XmlNamespaceManager)

Writes the XML Schema to the supplied Stream using the XmlNamespaceManager specified.

Write(TextWriter, XmlNamespaceManager)

Writes the XML Schema to the supplied TextWriter.

Write(XmlWriter, XmlNamespaceManager)

Writes the XML Schema to the supplied XmlWriter.

Write(Stream)

Writes the XML Schema to the supplied data stream.

public:
 void Write(System::IO::Stream ^ stream);
public void Write (System.IO.Stream stream);
member this.Write : System.IO.Stream -> unit

Parameters

stream
Stream

The supplied data stream.

Write(TextWriter)

Writes the XML Schema to the supplied TextWriter.

public:
 void Write(System::IO::TextWriter ^ writer);
public void Write (System.IO.TextWriter writer);
member this.Write : System.IO.TextWriter -> unit
Public Sub Write (writer As TextWriter)

Parameters

writer
TextWriter

The TextWriter to write to.

Write(XmlWriter)

Writes the XML Schema to the supplied XmlWriter.

public:
 void Write(System::Xml::XmlWriter ^ writer);
public void Write (System.Xml.XmlWriter writer);
member this.Write : System.Xml.XmlWriter -> unit
Public Sub Write (writer As XmlWriter)

Parameters

writer
XmlWriter

The XmlWriter to write to.

Exceptions

The writer parameter is null.

Write(Stream, XmlNamespaceManager)

Writes the XML Schema to the supplied Stream using the XmlNamespaceManager specified.

public:
 void Write(System::IO::Stream ^ stream, System::Xml::XmlNamespaceManager ^ namespaceManager);
public void Write (System.IO.Stream stream, System.Xml.XmlNamespaceManager namespaceManager);
member this.Write : System.IO.Stream * System.Xml.XmlNamespaceManager -> unit

Parameters

stream
Stream

The supplied data stream.

Remarks

Note

Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

Write(TextWriter, XmlNamespaceManager)

Writes the XML Schema to the supplied TextWriter.

public:
 void Write(System::IO::TextWriter ^ writer, System::Xml::XmlNamespaceManager ^ namespaceManager);
public void Write (System.IO.TextWriter writer, System.Xml.XmlNamespaceManager namespaceManager);
member this.Write : System.IO.TextWriter * System.Xml.XmlNamespaceManager -> unit
Public Sub Write (writer As TextWriter, namespaceManager As XmlNamespaceManager)

Parameters

writer
TextWriter

The TextWriter to write to.

Remarks

Note

Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

Write(XmlWriter, XmlNamespaceManager)

Writes the XML Schema to the supplied XmlWriter.

public:
 void Write(System::Xml::XmlWriter ^ writer, System::Xml::XmlNamespaceManager ^ namespaceManager);
public void Write (System.Xml.XmlWriter writer, System.Xml.XmlNamespaceManager namespaceManager);
member this.Write : System.Xml.XmlWriter * System.Xml.XmlNamespaceManager -> unit
Public Sub Write (writer As XmlWriter, namespaceManager As XmlNamespaceManager)

Parameters

writer
XmlWriter

The XmlWriter to write to.

Remarks

Note

Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

Applies to