HeaderCollection.FindFirst

The FindFirst method finds the first occurrence of a specified header type.

Syntax

[C#]

  Copy imageCopy Code
public Header FindFirst(
  String type
);

Syntax

[Visual Basic .NET]

  Copy imageCopy Code
Public Function FindFirst( _
  ByVal type As String _
) As Header

Parameters

Type

The header type, such as "To" or "Contact". The collection will be searched for the first occurrence of this header type. The short form of a header type (such as "m" for "Contact") as defined in RFC 3261 can be used for this parameter.

Return Values

Returns a Header object containing the first occurrence of the specified header type if a match is found. If no match is found, NULL is returned.

Remarks

The match is case-sensitive.

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also