XmlDataContractSerializerInputFormatter.CreateXmlReader 方法

定义

在反序列化期间调用以获取 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

适用于