System::Net::Http::Headers::NameValueHeaderValue class
Contents
[
Hide
]NameValueHeaderValue class
Represents a key/value pair to use in headers. 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.
class NameValueHeaderValue : public virtual System::ICloneable
Methods
Method | Description |
---|---|
Equals(System::SharedPtr<Object>) override | Compares objects using C# Object.Equals semantics. |
static Find(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, String) | Finds the NameValueHeaderValue-class instance in a collection by the specified name. |
get_Name() | Returns a name of the current instance. |
get_Value() | Gets a value of the current instance. |
GetHashCode() const override | Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. |
static GetHashCode(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>) | Returns a hash code of all the collection items. |
static GetNameValueLength(String, int32_t, System::SharedPtr<NameValueHeaderValue>&) | Converts a passed string from the specified index to an instance of the NameValueHeaderValue class. |
static GetNameValueLength(String, int32_t, HeaderFunc<System::SharedPtr<NameValueHeaderValue>>, System::SharedPtr<NameValueHeaderValue>&) | Converts a passed string from the specified index to an instance of the NameValueHeaderValue class. |
static GetNameValueListLength(String, int32_t, char16_t, System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>) | Converts a passed string from the specified index to the collection of the NameValueHeaderValue-class instances and returns the length of a parsed substring. |
static GetValueLength(String, int32_t) | Returns the length of a value from the specified index. |
NameValueHeaderValue() | Constructs a new instance. |
NameValueHeaderValue(String) | Constructs a new instance. |
NameValueHeaderValue(String, String) | Constructs a new instance. |
static Parse(String) | Converts a passed string to an instance of the NameValueHeaderValue class. |
set_Value(String) | Sets a value of the current instance. |
ToString() const override | Analog of C# Object.ToString() method. Enables converting custom objects to string. |
static ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, char16_t, bool, System::SharedPtr<Text::StringBuilder>) | Returns a string representation of the collection of the NameValueHeaderValue-class instances. |
static ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, char16_t, bool) | Returns a string representation of the collection of the NameValueHeaderValue-class instances. |
static TryParse(String, System::SharedPtr<NameValueHeaderValue>&) | Tries to convert a passed string to an instance of the NameValueHeaderValue class. |
See Also
- Class ICloneable
- Namespace System::Net::Http::Headers
- Library Aspose.TeX for C++