• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TnefMessage

Decodes ms-tnef streams (those winmail.dat attachments).

Inheritance
object
TnefMessage
Implements
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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 Source

TnefMessage(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 Source

MapiMessage

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.

View Source

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.

View Source

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 Source

Close()

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.

View Source

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.

View Source

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.

View Source

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.

Implements

IDisposable
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX