Share via


Message.GetHeaders

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Message.GetHeaders

The GetHeaders method obtains an IEnumerator interface for access to a type-filtered collection of headers set on the message.

Syntax

 public IEnumerator GetHeaders( 
 string type 
 ); 

Syntax

 Public Function GetHeaders( _ 
 ByVal type As string _  
 ) 
As  IEnumerator 

Parameters

  • type
    Header type to return in the collection, such as "To" or "Contact". To return all of the headers set on the message in the collection, set this parameter to "*".

Return Values

Returns an IEnumerator interface used to access the header collection.

Remarks

Each object in the collection is of type Header.

Requirements

Redistributable: Requires Microsoft Office Communications Server 2007 R2.

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

Header

Message