System::Net::Http::Headers::HttpHeaderValueCollection class
Contents
[
Hide
]HttpHeaderValueCollection class
Represents the collection of the headers values. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
template<typename T>class HttpHeaderValueCollection : public System::Collections::Generic::ICollection<T>
Parameter | Description |
---|---|
The | type of the headers values represented in the collection. |
Methods
Method | Description |
---|---|
Add(const T&) override | Adds element into collection. |
Clear() override | Deletes all elements from collection. |
Contains(const T&) const override | Checks if element is present in collection. |
CopyTo(System::ArrayPtr<T>, int32_t) override | Copies all collection elements to existing array elements. |
get_Count() const override | RTTI information. |
get_IsReadOnly() | Gets a value that indicates if the current collection is read-only. |
get_IsSpecialValueSet() | Gets a value that indicates if the current collection contains a “special value”. |
GetEnumerator() override | Gets enumerator. |
GetHeaderStringWithoutSpecial() | Returns a string representation of the current collection without a “special value”. |
HttpHeaderValueCollection(String, System::SharedPtr<HttpHeaders>) | Constructs a new instance. |
HttpHeaderValueCollection(String, System::SharedPtr<HttpHeaders>, Action<System::SharedPtr<HttpHeaderValueCollection<T>>, T>) | Constructs a new instance. |
HttpHeaderValueCollection(String, System::SharedPtr<HttpHeaders>, T) | Constructs a new instance. |
HttpHeaderValueCollection(String, System::SharedPtr<HttpHeaders>, T, Action<System::SharedPtr<HttpHeaderValueCollection<T>>, T>) | Constructs a new instance. |
ParseAdd(String) | Parses a header string representation and adds it to the current collection. |
Remove(const T&) override | Deletes element from collection. |
RemoveSpecialValue() | Removes a “special value”. |
SetSpecialValue() | Sets a “special value”. |
SetTemplateWeakPtr(uint32_t) override | Set n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. |
ToString() const override | Analog of C# Object.ToString() method. Enables converting custom objects to string. |
TryParseAdd(String) | Tries to parse a header string representation and add it to the current collection. |
See Also
- Class ICollection
- Namespace System::Net::Http::Headers
- Library Aspose.PUB for C++