Share via


XmlSerializerInputFormatter.CreateXmlReader Method

Definition

Overloads

CreateXmlReader(Stream, Encoding)

Called during deserialization to get the XmlReader.

CreateXmlReader(Stream, Encoding, Type)

Called during deserialization to get the XmlReader.

CreateXmlReader(Stream, Encoding)

Source:
XmlSerializerInputFormatter.cs
Source:
XmlSerializerInputFormatter.cs
Source:
XmlSerializerInputFormatter.cs

Called during deserialization to get the 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

Parameters

readStream
Stream

The Stream from which to read.

encoding
Encoding

The Encoding used to read the stream.

Returns

The XmlReader used during deserialization.

Applies to

CreateXmlReader(Stream, Encoding, Type)

Source:
XmlSerializerInputFormatter.cs

Called during deserialization to get the 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

Parameters

readStream
Stream

The Stream from which to read.

encoding
Encoding

The Encoding used to read the stream.

type
Type

The Type that is to be deserialized.

Returns

The XmlReader used during deserialization.

Applies to