Share via


EnrichedToHtml.DetectEncodingFromByteOrderMark property

The DetectEncodingFromByteOrderMark property gets or sets a Boolean value that indicates whether the encoding is detected from the byte order mark or determined by the InputEncoding property.

Namespace:  Microsoft.Exchange.Data.TextConverters
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Property DetectEncodingFromByteOrderMark As Boolean
    Get
    Set
'Usage
Dim instance As EnrichedToHtml
Dim value As Boolean

value = instance.DetectEncodingFromByteOrderMark

instance.DetectEncodingFromByteOrderMark = value
public bool DetectEncodingFromByteOrderMark { get; set; }

Property value

Type: System.Boolean
The DetectEncodingFromByteOrderMark property returns true if the byte order mark in the input is to be used to determine the encoding. This property returns false to indicate that the input encoding is to be determined by the InputEncoding property.

Remarks

If the DetectEncodingFromByteOrderMark property is set to true but the byte order mark is not present, then the InputEncoding property will be used to determine the encoding.

The DetectEncodingFromByteOrderMark property must be set before conversion begins.

See also

Reference

EnrichedToHtml class

EnrichedToHtml members

Microsoft.Exchange.Data.TextConverters namespace