Click or drag to resize
MimeKit

TnefReader(Stream, Int32, TnefComplianceMode) Constructor

Initialize a new instance of the TnefReader class.

Namespace: MimeKit.Tnef
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public TnefReader(
	Stream inputStream,
	int defaultMessageCodepage,
	TnefComplianceMode complianceMode
)

Parameters

inputStream  Stream
The input stream.
defaultMessageCodepage  Int32
The default message codepage.
complianceMode  TnefComplianceMode
The compliance mode.
Exceptions
ExceptionCondition
ArgumentNullExceptioninputStream is null.
ArgumentOutOfRangeExceptiondefaultMessageCodepage is not a valid codepage.
NotSupportedExceptiondefaultMessageCodepage is not a supported codepage.
TnefException The TNEF stream is corrupted or invalid.
Remarks

When reading a TNEF stream using the Strict mode, a TnefException will be thrown immediately at the first sign of invalid or corrupted data.

When reading a TNEF stream using the Loose mode, however, compliance issues are accumulated in the ComplianceMode property, but exceptions are not raised unless the stream is too corrupted to continue.

See Also