Represents an ordered collection of SIP headers.

This class implements the IEnumerableand ICollectioninterfaces.

The HeaderCollectionclass is derived from the System.Objectclass.

The HeaderCollectiontype exposes the following members.


  Name Description
Public property Count Number of elements that are contained in the collection.
Public property IsFixedSize Indicates whether the list has a fixed size.
Public property IsReadOnly Indicates whether the list is read-only.
Public property IsSynchronized Indicates whether access to the collection is synchronized.
Public property Item Retrieves a reference to the element at the specified index. In C#, the Itemproperty is the indexer for the HeaderCollection class.
Public property SyncRoot The SyncRootproperty contains an object that is used to synchronize access to the collection. This implementation always returns the current instance of the HeaderCollection object.


  Name Description
Public method Add The Addmethod adds the specific header to the collection.
Public method Clear The Clearmethod removes all headers from the collection.
Public method Contains The Containsmethod determines whether the specific header exists in the collection.
Public method CopyTo The CopyTomethod copies the entire HeaderCollection to a compatible one-dimensional array, starting at the specified index of the target array.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FindFirst(String) Finds the first header of the specified type.
Public method FindFirst(Header . . :: . . StandardHeaderType) Finds the first header of the specified standard type.
Public method GetEnumerator Returns an enumerator that can iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf Determines the index of a specific item in the list.
Public method Insert Inserts an item to the list at the specified position.
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove Removes the first occurrence of the specific item from the list.
Public method RemoveAt Removes the list item at the specified index.
Public method ToString (Inherited from Object.)

See also