共用方式為


XmlSerializerInputFormatter.CreateXmlReader 方法

定義

多載

CreateXmlReader(Stream, Encoding)

在還原序列化期間呼叫 以取得 XmlReader

CreateXmlReader(Stream, Encoding, Type)

在還原序列化期間呼叫 以取得 XmlReader

CreateXmlReader(Stream, Encoding)

來源:
XmlSerializerInputFormatter.cs
來源:
XmlSerializerInputFormatter.cs
來源:
XmlSerializerInputFormatter.cs

在還原序列化期間呼叫 以取得 XmlReader

protected:
 virtual System::Xml::XmlReader ^ CreateXmlReader(System::IO::Stream ^ readStream, System::Text::Encoding ^ encoding);
protected virtual System.Xml.XmlReader CreateXmlReader (System.IO.Stream readStream, System.Text.Encoding encoding);
abstract member CreateXmlReader : System.IO.Stream * System.Text.Encoding -> System.Xml.XmlReader
override this.CreateXmlReader : System.IO.Stream * System.Text.Encoding -> System.Xml.XmlReader
Protected Overridable Function CreateXmlReader (readStream As Stream, encoding As Encoding) As XmlReader

參數

readStream
Stream

要讀取的來源 Stream

encoding
Encoding

Encoding用來讀取資料流程的 。

傳回

在還原序列化期間所使用的 XmlReader

適用於

CreateXmlReader(Stream, Encoding, Type)

來源:
XmlSerializerInputFormatter.cs

在還原序列化期間呼叫 以取得 XmlReader

protected:
 virtual System::Xml::XmlReader ^ CreateXmlReader(System::IO::Stream ^ readStream, System::Text::Encoding ^ encoding, Type ^ type);
protected virtual System.Xml.XmlReader CreateXmlReader (System.IO.Stream readStream, System.Text.Encoding encoding, Type type);
abstract member CreateXmlReader : System.IO.Stream * System.Text.Encoding * Type -> System.Xml.XmlReader
override this.CreateXmlReader : System.IO.Stream * System.Text.Encoding * Type -> System.Xml.XmlReader
Protected Overridable Function CreateXmlReader (readStream As Stream, encoding As Encoding, type As Type) As XmlReader

參數

readStream
Stream

要讀取的來源 Stream

encoding
Encoding

Encoding用來讀取資料流程的 。

type
Type

Type要還原序列化的 。

傳回

在還原序列化期間所使用的 XmlReader

適用於