Class TnefMessage
Decodes ms-tnef streams (those winmail.dat attachments).
Implements
Inherited Members
Namespace: DRIT.Mail.Pst.Tnef
Assembly: DRIT.Mail.dll
Syntax
public class TnefMessage : IDisposable
Remarks
Decodes TNEF attributes and encapsulated MAPI properties. While decoding, the checksum of each attribute is verified to ensure the TNEF stream is not corrupt.
Constructors
View SourceTnefMessage(Stream)
Initializes a new instance of the TnefMessage class based on the supplied Stream.
Declaration
public TnefMessage(Stream input)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | input | Stream that contains the ms-tnef stream. |
Remarks
The tnef stream isn't automatically parsed, you must call Parse().
Properties
View SourceMapiMessage
Gets or sets the mapi message value.
Declaration
public MapiMessage MapiMessage { get; }
Property Value
| Type | Description |
|---|---|
| MapiMessage |
Remarks
Decodes TNEF attributes and encapsulated MAPI properties. While decoding, the checksum of each attribute is verified to ensure the TNEF stream is not corrupt.
Message
Gets or sets the message value.
Declaration
public Message Message { get; }
Property Value
| Type | Description |
|---|---|
| Message |
Remarks
Decodes TNEF attributes and encapsulated MAPI properties. While decoding, the checksum of each attribute is verified to ensure the TNEF stream is not corrupt.
TnefVersion
Gets or sets the tnef version value.
Declaration
public int TnefVersion { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
Decodes TNEF attributes and encapsulated MAPI properties. While decoding, the checksum of each attribute is verified to ensure the TNEF stream is not corrupt.
Methods
View SourceClose()
Closes and releases the reading resources associated with this instance.
Declaration
public void Close()
Remarks
Be careful before calling this method, as it also closes the underlying Stream.
Dispose()
Processes the dispose data.
Declaration
public void Dispose()
Remarks
Decodes TNEF attributes and encapsulated MAPI properties. While decoding, the checksum of each attribute is verified to ensure the TNEF stream is not corrupt.
Dispose(bool)
Processes the dispose data.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Specifies the disposing value. |
Remarks
Decodes TNEF attributes and encapsulated MAPI properties. While decoding, the checksum of each attribute is verified to ensure the TNEF stream is not corrupt.
Parse()
Parses the ms-tnef stream from the provided Stream.
Declaration
public bool Parse()
Returns
| Type | Description |
|---|---|
| bool | true if parsing is successful. false otherwise. |
Remarks
Decodes TNEF attributes and encapsulated MAPI properties. While decoding, the checksum of each attribute is verified to ensure the TNEF stream is not corrupt.