Szerkesztés

Megosztás a következőn keresztül:


XmlDictionaryWriter.CreateTextWriter Method

Definition

Creates an instance of XmlDictionaryWriter that writes text XML.

Overloads

CreateTextWriter(Stream, Encoding)

Creates an instance of XmlDictionaryWriter that writes text XML.

CreateTextWriter(Stream, Encoding, Boolean)

Creates an instance of XmlDictionaryWriter that writes text XML.

CreateTextWriter(Stream)

Creates an instance of XmlDictionaryWriter that writes text XML.

CreateTextWriter(Stream, Encoding)

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

Creates an instance of XmlDictionaryWriter that writes text 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

Parameters

stream
Stream

The stream to write to.

encoding
Encoding

The character encoding of the output.

Returns

An instance of XmlDictionaryWriter.

Remarks

An instance of XmlDictionaryWriter.

Applies to

CreateTextWriter(Stream, Encoding, Boolean)

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

Creates an instance of XmlDictionaryWriter that writes text 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

Parameters

stream
Stream

The stream to write to.

encoding
Encoding

The character encoding of the stream.

ownsStream
Boolean

true to indicate that the stream is closed by the writer when done; otherwise false.

Returns

An instance of XmlDictionaryWriter.

Applies to

CreateTextWriter(Stream)

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

Creates an instance of XmlDictionaryWriter that writes text 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

Parameters

stream
Stream

The stream to write to.

Returns

An instance of XmlDictionaryWriter.

Remarks

The text writer writes the XML in UTF-8 format.

Applies to