System::Net::Http::Headers::ProductInfoHeaderValue class

ProductInfoHeaderValue class

Represents a product or a comment in a value of the ‘User-Agent’ header. 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 ProductInfoHeaderValue : public System::ICloneable

Methods

MethodDescription
Equals(System::SharedPtr<Object>) overrideCompares objects using C# Object.Equals semantics.
get_Comment()Returns a comment.
get_Product()RTTI information.
GetHashCode() const overrideAnalog of C# Object.GetHashCode() method. Enables hashing of custom objects.
static GetProductInfoLength(String, int32_t, System::SharedPtr<ProductInfoHeaderValue>&)Converts a passed string from the specified index to an instance of the ProductInfoHeaderValue class.
static Parse(String)Converts a passed string to an instance of the ProductInfoHeaderValue class.
ProductInfoHeaderValue(String, String)Constructs a new instance.
ProductInfoHeaderValue(System::SharedPtr<ProductHeaderValue>)Constructs a new instance.
ProductInfoHeaderValue(String)Constructs a new instance.
ToString() const overrideAnalog of C# Object.ToString() method. Enables converting custom objects to string.
static TryParse(String, System::SharedPtr<ProductInfoHeaderValue>&)Tries to convert a passed string to an instance of the ProductInfoHeaderValue class.

See Also