Condividi tramite


DslDefinitionModelSerializationHelperBase.TryGetEncoding Method

Attempts to return the encoding used by the reader.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)

Syntax

'Declaration
Protected Overridable Function TryGetEncoding ( _
    reader As XmlReader, _
    <OutAttribute> ByRef encoding As Encoding _
) As Boolean
protected virtual bool TryGetEncoding(
    XmlReader reader,
    out Encoding encoding
)
protected:
virtual bool TryGetEncoding(
    XmlReader^ reader, 
    [OutAttribute] Encoding^% encoding
)
abstract TryGetEncoding : 
        reader:XmlReader * 
        encoding:Encoding byref -> bool  
override TryGetEncoding : 
        reader:XmlReader * 
        encoding:Encoding byref -> bool
protected function TryGetEncoding(
    reader : XmlReader, 
    encoding : Encoding
) : boolean

Parameters

Return Value

Type: System.Boolean

Remarks

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

.NET Framework Security

See Also

Reference

DslDefinitionModelSerializationHelperBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace