InternetMessageHeaderCollection InternetMessageHeaderCollection InternetMessageHeaderCollection Class

Definition

Represents a collection of Internet message headers. To get the entire collection of Internet message headers, use the PR_TRANSPORT_MESSAGE_HEADERS property.

public ref class InternetMessageHeaderCollection sealed : Microsoft::Exchange::WebServices::Data::ComplexPropertyCollection<Microsoft::Exchange::WebServices::Data::InternetMessageHeader ^>
public sealed class InternetMessageHeaderCollection : Microsoft.Exchange.WebServices.Data.ComplexPropertyCollection<Microsoft.Exchange.WebServices.Data.InternetMessageHeader>
Public NotInheritable Class InternetMessageHeaderCollection
Inherits ComplexPropertyCollection(Of InternetMessageHeader)
Inheritance

Remarks

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

Methods

Contains(TComplexProperty) Contains(TComplexProperty) Contains(TComplexProperty)

Determines whether a specific property is in the collection.

(Inherited from ComplexPropertyCollection<TComplexProperty>)
Find(String) Find(String) Find(String)

Finds a specific header in the collection.

GetEnumerator() GetEnumerator() GetEnumerator()

Gets an enumerator that iterates through the elements of the collection.

(Inherited from ComplexPropertyCollection<TComplexProperty>)
IndexOf(TComplexProperty) IndexOf(TComplexProperty) IndexOf(TComplexProperty)

Searches for a specific property and return its zero-based index within the collection.

(Inherited from ComplexPropertyCollection<TComplexProperty>)

Properties

Count Count Count

Gets the total number of properties in the collection.

(Inherited from ComplexPropertyCollection<TComplexProperty>)
Item[Int32] Item[Int32] Item[Int32]

Gets the property at the specified index.

(Inherited from ComplexPropertyCollection<TComplexProperty>)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Gets an enumerator that iterates through the elements of the collection. The IEnumerable.GetEnumerator() method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

(Inherited from ComplexPropertyCollection<TComplexProperty>)

Applies to