System::Net::Http::Headers::ProductInfoHeaderValue 类
ProductInfoHeaderValue class
表示 ‘User-Agent’ 标头值中的产品或注释。此类的对象应仅通过 System::MakeObject() 函数分配。切勿在栈上或使用 new 运算符创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。
class ProductInfoHeaderValue : public System::ICloneable
方法
| 方法 | 描述 |
|---|---|
| Equals(System::SharedPtr<Object>) override | 使用 C# Object.Equals 语义比较对象。 |
| get_Comment() | 返回注释。 |
| get_Product() | RTTI 信息。 |
| GetHashCode() const override | 相当于 C# Object.GetHashCode() 方法。启用自定义对象的哈希计算。 |
| static GetProductInfoLength(String, int32_t, System::SharedPtr<ProductInfoHeaderValue>&) | 将指定索引处的传入字符串转换为 ProductInfoHeaderValue 类的实例。 |
| static Parse(String) | 将传入字符串转换为 ProductInfoHeaderValue 类的实例。 |
| ProductInfoHeaderValue(String, String) | 构造一个新实例。 |
| ProductInfoHeaderValue(System::SharedPtr<ProductHeaderValue>) | 构造一个新实例。 |
| ProductInfoHeaderValue(String) | 构造一个新实例。 |
| ToString() const override | 相当于 C# 的 Object.ToString() 方法。用于将自定义对象转换为字符串。 |
| static TryParse(String, System::SharedPtr<ProductInfoHeaderValue>&) | 尝试将传入字符串转换为 ProductInfoHeaderValue 类的实例。 |
另见
- Class ICloneable
- Namespace System::Net::Http::Headers
- Library Aspose.Font for C++