XmlSerializerInputFormatter.CreateXmlReader 方法

定义

重载

CreateXmlReader(Stream, Encoding)

在反序列化期间调用以获取 XmlReader

CreateXmlReader(Stream, Encoding, Type)

在反序列化期间调用以获取 XmlReader

CreateXmlReader(Stream, Encoding)

Source:
XmlSerializerInputFormatter.cs
Source:
XmlSerializerInputFormatter.cs
Source:
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)

Source:
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

适用于