HeaderCollection Class

Definition

Represents an ordered collection of SIP headers. This class implements the IEnumerable and ICollection interfaces.The HeaderCollection class is derived from the System.Object class.

public ref class HeaderCollection sealed : System::Collections::ICollection
public sealed class HeaderCollection : System.Collections.ICollection
Public NotInheritable Class HeaderCollection
Implements ICollection
Inheritance
HeaderCollection
Implements

Properties

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[Int32]

Retrieves a reference to the element at the specified index. In C#, the Item property is the indexer for the HeaderCollection class.

SyncRoot

The SyncRoot property contains an object that is used to synchronize access to the collection. This implementation always returns the current instance of the HeaderCollection object.

Methods

Add(Header)

The Add method adds the specific header to the collection.

Clear()

The Clear method removes all headers from the collection.

Contains(Header)

The Contains method determines whether the specific header exists in the collection.

CopyTo(Array, Int32)

The CopyTo method copies the entire HeaderCollection to a compatible one-dimensional array, starting at the specified index of the target array.

FindFirst(Header+StandardHeaderType)

Finds the first header of the specified standard type.

FindFirst(String)

Finds the first header of the specified type.

GetEnumerator()

Returns an enumerator that can iterate through the collection.

IndexOf(Header)

Determines the index of a specific item in the list.

Insert(Int32, Header)

Inserts an item to the list at the specified position.

Remove(Header)

Removes the first occurrence of the specific item from the list.

RemoveAt(Int32)

Removes the list item at the specified index.

Applies to