DslDefinitionModelSerializationHelperBase.TryGetEncoding Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.