HeaderCollection.FindFirst

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.

HeaderCollection.FindFirst

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

Syntax

 public Header FindFirst( 
 String type 
 ); 

Syntax

 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 Office Communications Server 2007 R2.

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

Header

HeaderCollection