Message.GetHeaders
Message.GetHeaders
The GetHeaders method obtains an IEnumerator 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 IEnumerator interface used to access the header collection.
Remarks
Each object in the collection is of type Header.
Requirements
Redistributable: Requires Microsoft Lync Server 2010
Namespace:Microsoft.Rtc.Sip
Assembly: ServerAgent (in ServerAgent.dll)