ITnef : IUnknown

Applies to: Outlook 2013 | Outlook 2016

Provides methods for encapsulating MAPI properties that are not supported by a messaging system into binary streams that can be attached to messages. The format used for this encapsulation is the Transport-Neutral Encapsulation Format (TNEF). The target transport provider or MAPI-based client application can then, on receiving a message that includes a TNEF attachment, recover the properties from the attachment.

Property Value
Header file:
Tnef.h
Exposed by:
TNEF objects
Implemented by:
MAPI
Called by:
Transport providers, message store providers, and gateways
Interface identifier:
IID_ITNEF
Pointer type:
LPTNEF

Vtable order

Member Description
AddProps
Enables the calling service provider or gateway to add properties to the encapsulation of a message or an attachment.
ExtractProps
Extracts the properties from a TNEF encapsulation.
Finish
Finishes processing for all TNEF operations that are queued and waiting.
OpenTaggedBody
Opens a stream interface on the text of an encapsulated message.
SetProps
Sets the value of one or more properties for an encapsulated message or attachment without modifying the original message or attachment.
EncodeRecips
Encodes a view for a message's recipient table in the TNEF data stream for the message.
FinishComponent
Processes individual components from a message one at a time into a TNEF stream.

See also

MAPI Interfaces