HeaderCollection

HeaderCollection class

Defines the collection of header fields

Constructors

NameDescription
HeaderCollection (4 overloads)Initializes a new instance of the HeaderCollection class.

Methods

NameDescription
Add (4 overloads)Adds a header to collection.
Add_Adds the header.
AddHeaderObjectAdds the specified header value
ClearClears all headers.
ContainsGets a value indicating whether the specified header is contained in the collection
CopyToCopies all the elements of the current collection to the specified string array starting at the specified destination index.
Get (2 overloads)Gets the value at the specified index.
get_AllKeysGets an array of strings containing all header keys in collections
get_CountGets a count of headers
get_IsReadOnlyIs collection readonly
get_KeysGets a T:System::Collections::ObjectModel::ReadOnlyCollection containing all header keys in collections
GetDecodedValueGets the header value.
GetEnumeratorReturns an enumerator that iterates through a collection.
GetHeaderObjectGets the object representing the specified header value Note: it gets the first value for multi-valued headers
GetHeaderObjectsGets the objects array representing the specified header value Note: it gets the first value for multi-valued headers
GetKeyGets the key at the specified index of the collection.
GetStringReturns a System::String that represents this instance.
GetValuesGets the header values.
HasKeysGets a value indicating whether the collection contains keys.
idx_get (2 overloads)Gets a value from collection by the index.
idx_setGets a value from collection by the name.
InsertInserts 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
InternalSet
RemoveRemoves the header from collection by a given header name.
SetSets the header.
SetHeaderObjectSets the specified header value