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.
Properties
Name | Description | |
---|---|---|
Count | Number of elements that are contained in the collection. | |
IsFixedSize | Indicates whether the list has a fixed size. | |
IsReadOnly | Indicates whether the list is read-only. | |
IsSynchronized | Indicates whether access to the collection is synchronized. | |
Item | Retrieves a reference to the element at the specified index. In C#, the Itemproperty is the indexer for the HeaderCollection class. | |
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. |
Methods
Name | Description | |
---|---|---|
Add | The Addmethod adds the specific header to the collection. | |
Clear | The Clearmethod removes all headers from the collection. | |
Contains | The Containsmethod determines whether the specific header exists in the collection. | |
CopyTo | The CopyTomethod copies the entire HeaderCollection to a compatible one-dimensional array, starting at the specified index of the target array. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
FindFirst(String) | Finds the first header of the specified type. | |
FindFirst(Header . . :: . . StandardHeaderType) | Finds the first header of the specified standard type. | |
GetEnumerator | Returns an enumerator that can iterate through the collection. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IndexOf | Determines the index of a specific item in the list. | |
Insert | Inserts an item to the list at the specified position. | |
MemberwiseClone | (Inherited from Object.) | |
Remove | Removes the first occurrence of the specific item from the list. | |
RemoveAt | Removes the list item at the specified index. | |
ToString | (Inherited from Object.) |