HeaderCollection.IndexOf

The IndexOf method returns the index of a specified Header object within the collection.

Syntax

[C#]

  Copy imageCopy Code
public Int32 IndexOf(
  Header h
);

Syntax

[Visual Basic .NET]

  Copy imageCopy Code
Public Function IndexOf( _
  ByVal h As Header _
) As Int32

Parameters

h

Specifies the Header object whose index will be retrieved.

Return Values

Returns the index at which the specified Header object was found. If the object was not found, the method returns -1.

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also