XmlSchema.Write 方法

定义

写出 XML 架构。Writes out an XML Schema.

重载

Write(Stream)

将 XML 架构写入提供的数据流中。Writes the XML Schema to the supplied data stream.

Write(TextWriter)

将“XML 架构”写入提供的 TextWriterWrites the XML Schema to the supplied TextWriter.

Write(XmlWriter)

将“XML 架构”写入提供的 XmlWriterWrites the XML Schema to the supplied XmlWriter.

Write(Stream, XmlNamespaceManager)

使用指定的 Stream 将“XML 架构”写入提供的 XmlNamespaceManagerWrites the XML Schema to the supplied Stream using the XmlNamespaceManager specified.

Write(TextWriter, XmlNamespaceManager)

将“XML 架构”写入提供的 TextWriterWrites the XML Schema to the supplied TextWriter.

Write(XmlWriter, XmlNamespaceManager)

将“XML 架构”写入提供的 XmlWriterWrites the XML Schema to the supplied XmlWriter.

Write(Stream)

将 XML 架构写入提供的数据流中。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
Public Sub Write (stream As Stream)

参数

stream
Stream

提供的数据流。The supplied data stream.

适用于

Write(TextWriter)

将“XML 架构”写入提供的 TextWriterWrites 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)

参数

writer
TextWriter

要向其中进行写入的 TextWriterThe TextWriter to write to.

适用于

Write(XmlWriter)

将“XML 架构”写入提供的 XmlWriterWrites 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)

参数

writer
XmlWriter

要向其中进行写入的 XmlWriterThe XmlWriter to write to.

例外

writer 参数为 null。The writer parameter is null.

适用于

Write(Stream, XmlNamespaceManager)

使用指定的 Stream 将“XML 架构”写入提供的 XmlNamespaceManagerWrites 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);
public void Write (System.IO.Stream stream, System.Xml.XmlNamespaceManager namespaceManager);
member this.Write : System.IO.Stream * System.Xml.XmlNamespaceManager -> unit
Public Sub Write (stream As Stream, namespaceManager As XmlNamespaceManager)

参数

stream
Stream

提供的数据流。The supplied data stream.

注解

备注

提供 XmlNamespaceManager 禁用自动命名空间前缀映射。Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

适用于

Write(TextWriter, XmlNamespaceManager)

将“XML 架构”写入提供的 TextWriterWrites 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);
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)

参数

writer
TextWriter

要向其中进行写入的 TextWriterThe TextWriter to write to.

注解

备注

提供 XmlNamespaceManager 禁用自动命名空间前缀映射。Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

适用于

Write(XmlWriter, XmlNamespaceManager)

将“XML 架构”写入提供的 XmlWriterWrites 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);
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)

参数

writer
XmlWriter

要向其中进行写入的 XmlWriterThe XmlWriter to write to.

注解

备注

提供 XmlNamespaceManager 禁用自动命名空间前缀映射。Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

适用于