XmlDictionaryWriter.CreateTextWriter 方法

定义

创建一个 XmlDictionaryWriter 实例,该实例写入文本 XML。

重载

CreateTextWriter(Stream, Encoding)

创建一个 XmlDictionaryWriter 实例,该实例写入文本 XML。

CreateTextWriter(Stream, Encoding, Boolean)

创建一个 XmlDictionaryWriter 实例,该实例写入文本 XML。

CreateTextWriter(Stream)

创建一个 XmlDictionaryWriter 实例,该实例写入文本 XML。

CreateTextWriter(Stream, Encoding)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

创建一个 XmlDictionaryWriter 实例,该实例写入文本 XML。

public:
 static System::Xml::XmlDictionaryWriter ^ CreateTextWriter(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding);
public static System.Xml.XmlDictionaryWriter CreateTextWriter (System.IO.Stream stream, System.Text.Encoding encoding);
static member CreateTextWriter : System.IO.Stream * System.Text.Encoding -> System.Xml.XmlDictionaryWriter
Public Shared Function CreateTextWriter (stream As Stream, encoding As Encoding) As XmlDictionaryWriter

参数

stream
Stream

要写入的流。

encoding
Encoding

输出的字符编码。

返回

XmlDictionaryWriter 的一个实例。

注解

XmlDictionaryWriter 的一个实例。

适用于

CreateTextWriter(Stream, Encoding, Boolean)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

创建一个 XmlDictionaryWriter 实例,该实例写入文本 XML。

public:
 static System::Xml::XmlDictionaryWriter ^ CreateTextWriter(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, bool ownsStream);
public static System.Xml.XmlDictionaryWriter CreateTextWriter (System.IO.Stream stream, System.Text.Encoding encoding, bool ownsStream);
static member CreateTextWriter : System.IO.Stream * System.Text.Encoding * bool -> System.Xml.XmlDictionaryWriter
Public Shared Function CreateTextWriter (stream As Stream, encoding As Encoding, ownsStream As Boolean) As XmlDictionaryWriter

参数

stream
Stream

要写入的流。

encoding
Encoding

流的字符编码。

ownsStream
Boolean

如果指示完成时编写器关闭流,则为 true;否则为 false

返回

XmlDictionaryWriter 的一个实例。

适用于

CreateTextWriter(Stream)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

创建一个 XmlDictionaryWriter 实例,该实例写入文本 XML。

public:
 static System::Xml::XmlDictionaryWriter ^ CreateTextWriter(System::IO::Stream ^ stream);
public static System.Xml.XmlDictionaryWriter CreateTextWriter (System.IO.Stream stream);
static member CreateTextWriter : System.IO.Stream -> System.Xml.XmlDictionaryWriter
Public Shared Function CreateTextWriter (stream As Stream) As XmlDictionaryWriter

参数

stream
Stream

要写入的流。

返回

XmlDictionaryWriter 的一个实例。

注解

文本编写器以 UTF-8 格式写入 XML。

适用于