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 External .NET Framework Class Reference interface for access to a type-filtered collection of headers set on the message.

Syntax

[C#]

public IEnumerator GetHeaders(
  string type
);

Syntax

[Visual Basic .NET]

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 External .NET Framework Class Reference 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.

Namespace:Microsoft.Rtc.Sip Namespace

Assembly: ServerAgent (in ServerAgent.dll)

Concepts

Header

Message