ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
Document Class
Document Properties
Contents Property
Encoding Property
Info Property

# DocumentEncoding Property

Gets the document's character encoding.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public virtual Encoding Encoding { get; }

    Public Overridable ReadOnly Property Encoding As Encoding
    	Get

    public:
    virtual property Encoding^ Encoding {
    	Encoding^ get ();
    }

    abstract Encoding : Encoding with get
    override Encoding : Encoding with get

#### Property Value

Encoding
Remarks
This property returns null if the document contains binary data or if its character encoding is unknown.
See Also

#### Reference

Document Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft