DslDefinitionModelSerializationHelperBase.TryGetEncoding Method

Definition

Attempts to return the encoding used by the reader.

protected:
 virtual bool TryGetEncoding(System::Xml::XmlReader ^ reader, [Runtime::InteropServices::Out] System::Text::Encoding ^ % encoding);
protected virtual bool TryGetEncoding (System.Xml.XmlReader reader, out System.Text.Encoding encoding);
abstract member TryGetEncoding : System.Xml.XmlReader * Encoding -> bool
override this.TryGetEncoding : System.Xml.XmlReader * Encoding -> bool
Protected Overridable Function TryGetEncoding (reader As XmlReader, ByRef encoding As Encoding) As Boolean

Parameters

reader
XmlReader
encoding
Encoding

Returns

Remarks

The reader will be positioned at the start of the document when calling this method.

Applies to