Tnef |
public TnefReader( Stream inputStream, int defaultMessageCodepage, TnefComplianceMode complianceMode )
Exception | Condition |
---|---|
ArgumentNullException | inputStream is null. |
ArgumentOutOfRangeException | defaultMessageCodepage is not a valid codepage. |
NotSupportedException | defaultMessageCodepage is not a supported codepage. |
TnefException | The TNEF stream is corrupted or invalid. |
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.