HeaderCollection
Defines the collection of header fields
public class HeaderCollection : ICollection<string>
Constructors
Properties
Name |
Description |
virtual AllKeys { get; } |
Gets an array of strings containing all header keys in collections |
virtual Count { get; } |
Gets a count of headers |
IsReadOnly { get; } |
Is collection readonly |
Item { get; } |
Gets a value from collection by the index. |
Item { get; set; } |
Gets a value from collection by the name. |
virtual Keys { get; } |
Gets a ReadOnlyCollection containing all header keys in collections |
Methods
Name |
Description |
Add(HeaderCollection) |
Adds a header to collection. |
Add(string) |
Adds the header without value |
Add(string, string) |
Adds the header. |
virtual Add_(string, string) |
Adds the header. |
virtual Clear() |
Clears all headers. |
Contains(string) |
Gets a value indicating whether the specified header is contained in the collection |
CopyTo(string[], int) |
Copies all the elements of the current collection to the specified string array starting at the specified destination index. |
virtual Get(int) |
Gets the value at the specified index. |
Get(string) |
Gets the header value by a given header name. |
GetDecodedValue(string) |
Gets the header value. |
GetEnumerator() |
Returns an enumerator that iterates through a collection. |
virtual GetKey(int) |
Gets the key at the specified index of the collection. |
GetValues(string) |
Gets the header values. |
HasKeys() |
Gets a value indicating whether the collection contains keys. |
Insert(string, string) |
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. |
Remove(string) |
Removes the header from collection by a given header name. |
Set(string, string) |
Sets the header. |
See Also