ProductInfoHeaderValue 类

定义

表示可以是 User-Agent 标头中的产品或注释的值。

public ref class ProductInfoHeaderValue
public ref class ProductInfoHeaderValue : ICloneable
public class ProductInfoHeaderValue
public class ProductInfoHeaderValue : ICloneable
type ProductInfoHeaderValue = class
type ProductInfoHeaderValue = class
    interface ICloneable
Public Class ProductInfoHeaderValue
Public Class ProductInfoHeaderValue
Implements ICloneable
继承
ProductInfoHeaderValue
实现

注解

ProductInfoHeaderValue 类支持 IETF 在 RFC 2616 中定义的User-Agent标头中使用的产品和注释令牌值。

User-Agent字段包含有关发起请求的用户代理的信息。 该字段可以包含多个产品令牌和注释,用于标识用户代理和任何子产品。

构造函数

ProductInfoHeaderValue(ProductHeaderValue)

初始化 ProductInfoHeaderValue 类的新实例。

ProductInfoHeaderValue(String)

初始化 ProductInfoHeaderValue 类的新实例。

ProductInfoHeaderValue(String, String)

初始化 ProductInfoHeaderValue 类的新实例。

属性

Comment

获取 ProductInfoHeaderValue 对象的注释。

Product

获取 ProductInfoHeaderValue 对象的产品。

方法

Equals(Object)

确定指定的 Object 是否等于当前的 ProductInfoHeaderValue 对象。

GetHashCode()

充当 ProductInfoHeaderValue 对象的哈希函数。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
Parse(String)

将字符串转换为 ProductInfoHeaderValue 实例。

ToString()

返回表示当前 ProductInfoHeaderValue 对象的字符串。

TryParse(String, ProductInfoHeaderValue)

确定一个字符串是否为有效的 ProductInfoHeaderValue 信息。

显式接口实现

ICloneable.Clone()

创建作为当前 ProductInfoHeaderValue 实例副本的新对象。

适用于