Tnef OptionsDefault Codepage Property
Get or set the codepage to use for 8-bit strings when the stream does not specify one.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The default codepage.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int DefaultCodepage { get; set; }Property Value
Int32The default codepage.
Remarks
Gets or sets the codepage to use for decoding 8-bit strings until the TNEF stream specifies its own codepage using a nonzero OemCodepage attribute or, if it has no such attribute, the message's InternetCodepage property (see [MS-OXTNEF] section 2.3.3.2).
A value of 0 means windows-1252. If the requested codepage is not available on the host (which is common on non-Windows platforms unless the application has registered the System.Text.Encoding.CodePages provider), a fallback encoding will be used instead.
Exceptions
| ArgumentOutOfRangeException | value is negative. |