HeaderCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for