共用方式為


XmlDictionaryWriter.CreateTextWriter 方法

定義

建立寫入文字 XML 的 XmlDictionaryWriter 執行個體。

多載

CreateTextWriter(Stream, Encoding)

建立寫入文字 XML 的 XmlDictionaryWriter 執行個體。

CreateTextWriter(Stream, Encoding, Boolean)

建立寫入文字 XML 的 XmlDictionaryWriter 執行個體。

CreateTextWriter(Stream)

建立寫入文字 XML 的 XmlDictionaryWriter 執行個體。

CreateTextWriter(Stream, Encoding)

來源:
XmlDictionaryWriter.cs
來源:
XmlDictionaryWriter.cs
來源:
XmlDictionaryWriter.cs

建立寫入文字 XML 的 XmlDictionaryWriter 執行個體。

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)

來源:
XmlDictionaryWriter.cs
來源:
XmlDictionaryWriter.cs
來源:
XmlDictionaryWriter.cs

建立寫入文字 XML 的 XmlDictionaryWriter 執行個體。

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)

來源:
XmlDictionaryWriter.cs
來源:
XmlDictionaryWriter.cs
來源:
XmlDictionaryWriter.cs

建立寫入文字 XML 的 XmlDictionaryWriter 執行個體。

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。

適用於