Item.InternetMessageHeaders property

Gets a list of Internet headers for this item. To get the entire collection of Internet message headers, use the PR_TRANSPORT_MESSAGE_HEADERS property.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public InternetMessageHeaderCollection InternetMessageHeaders { get; }

The following is the definition for the PR_TRANSPORT_MESSAGE_HEADERS extended property.

ExtendedPropertyDefinition PR_TRANSPORT_MESSAGE_HEADERS = new ExtendedPropertyDefinition(0x007D, MapiPropertyType.String);

You can add this property definition to the PropertySet object to get the Internet message headers.

For more information about EWS and Internet message headers, see “Getting Internet message headers” in EWS, MIME, and the missing Internet message headers.