Читати англійською Редагувати

Поділитися через


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)

Source:
XmlSchema.cs
Source:
XmlSchema.cs
Source:
XmlSchema.cs

Writes the XML Schema to the supplied data stream.

C#
public void Write(System.IO.Stream stream);

Parameters

stream
Stream

The supplied data stream.

Applies to

.NET 10 та інші версії
Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Write(TextWriter)

Source:
XmlSchema.cs
Source:
XmlSchema.cs
Source:
XmlSchema.cs

Writes the XML Schema to the supplied TextWriter.

C#
public void Write(System.IO.TextWriter writer);

Parameters

writer
TextWriter

The TextWriter to write to.

Applies to

.NET 10 та інші версії
Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Write(XmlWriter)

Source:
XmlSchema.cs
Source:
XmlSchema.cs
Source:
XmlSchema.cs

Writes the XML Schema to the supplied XmlWriter.

C#
public void Write(System.Xml.XmlWriter writer);

Parameters

writer
XmlWriter

The XmlWriter to write to.

Exceptions

The writer parameter is null.

Applies to

.NET 10 та інші версії
Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Write(Stream, XmlNamespaceManager)

Source:
XmlSchema.cs
Source:
XmlSchema.cs
Source:
XmlSchema.cs

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

C#
public void Write(System.IO.Stream stream, System.Xml.XmlNamespaceManager? namespaceManager);
C#
public void Write(System.IO.Stream stream, System.Xml.XmlNamespaceManager namespaceManager);

Parameters

stream
Stream

The supplied data stream.

Remarks

Примітка

Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

Applies to

.NET 10 та інші версії
Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Write(TextWriter, XmlNamespaceManager)

Source:
XmlSchema.cs
Source:
XmlSchema.cs
Source:
XmlSchema.cs

Writes the XML Schema to the supplied TextWriter.

C#
public void Write(System.IO.TextWriter writer, System.Xml.XmlNamespaceManager? namespaceManager);
C#
public void Write(System.IO.TextWriter writer, System.Xml.XmlNamespaceManager namespaceManager);

Parameters

writer
TextWriter

The TextWriter to write to.

Remarks

Примітка

Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

Applies to

.NET 10 та інші версії
Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Write(XmlWriter, XmlNamespaceManager)

Source:
XmlSchema.cs
Source:
XmlSchema.cs
Source:
XmlSchema.cs

Writes the XML Schema to the supplied XmlWriter.

C#
public void Write(System.Xml.XmlWriter writer, System.Xml.XmlNamespaceManager? namespaceManager);
C#
public void Write(System.Xml.XmlWriter writer, System.Xml.XmlNamespaceManager namespaceManager);

Parameters

writer
XmlWriter

The XmlWriter to write to.

Remarks

Примітка

Supplying an XmlNamespaceManager disables automatic namespace prefix mapping.

Applies to

.NET 10 та інші версії
Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1