
## HeaderCollection class

Defines the collection of header fields

## Constructors

| Name | Description |
| --- | --- |
| [HeaderCollection (4 overloads)](./headercollection/) | Initializes a new instance of the HeaderCollection class. |

## Methods

| Name | Description |
| --- | --- |
| [Add (4 overloads)](./add/) | Adds a header to collection. |
| [Add_](./add_/) | Adds the header. |
| [AddHeaderObject](./addheaderobject/) | Adds the specified header value |
| [Clear](./clear/) | Clears all headers. |
| [Contains](./contains/) | Gets a value indicating whether the specified header is contained in the collection |
| [CopyTo](./copyto/) | Copies all the elements of the current collection to the specified string array starting at the specified destination index. |
| [Get (2 overloads)](./get/) | Gets the value at the specified index. |
| [get_AllKeys](./get_allkeys/) | Gets an array of strings containing all header keys in collections |
| [get_Count](./get_count/) | Gets a count of headers |
| [get_IsReadOnly](./get_isreadonly/) | Is collection readonly |
| [get_Keys](./get_keys/) | Gets a T:System::Collections::ObjectModel::ReadOnlyCollection<string> containing all header keys in collections |
| [GetDecodedValue](./getdecodedvalue/) | Gets the header value. |
| [GetEnumerator](./getenumerator/) | Returns an enumerator that iterates through a collection. |
| [GetHeaderObject](./getheaderobject/) | Gets the object representing the specified header value Note: it gets the first value for multi-valued headers |
| [GetHeaderObjects](./getheaderobjects/) | Gets the objects array representing the specified header value Note: it gets the first value for multi-valued headers |
| [GetKey](./getkey/) | Gets the key at the specified index of the collection. |
| [GetString](./getstring/) | Returns a System::String that represents this instance. |
| [GetValues](./getvalues/) | Gets the header values. |
| [HasKeys](./haskeys/) | Gets a value indicating whether the collection contains keys. |
| [idx_get (2 overloads)](./idx_get/) | Gets a value from collection by the index. |
| [idx_set](./idx_set/) | Gets a value from collection by the name. |
| [Insert](./insert/) | Inserts the header in collection. If collection contains headers with the same name this header will be inserted before other headers with the same name. |
| [InternalRemove](./internalremove/) |  |
| [InternalSet](./internalset/) |  |
| [Remove](./remove/) | Removes the header from collection by a given header name. |
| [Set](./set/) | Sets the header. |
| [SetHeaderObject](./setheaderobject/) | Sets the specified header value |

