แก้ไข

แชร์ผ่าน


ProductInfoHeaderValue Class

Definition

Represents a value which can either be a product or a comment in a User-Agent header.

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
Inheritance
ProductInfoHeaderValue
Implements

Remarks

The ProductInfoHeaderValue class provides support for the product and comment tokens values used in a User-Agent header as defined in RFC 2616 by the IETF.

The User-Agent field contains information about the user agent originating the request. The field can contain multiple product tokens and comments identifying the user agent and any sub-products.

Constructors

ProductInfoHeaderValue(ProductHeaderValue)

Initializes a new instance of the ProductInfoHeaderValue class.

ProductInfoHeaderValue(String, String)

Initializes a new instance of the ProductInfoHeaderValue class.

ProductInfoHeaderValue(String)

Initializes a new instance of the ProductInfoHeaderValue class.

Properties

Comment

Gets the comment from the ProductInfoHeaderValue object.

Product

Gets the product from the ProductInfoHeaderValue object.

Methods

Equals(Object)

Determines whether the specified Object is equal to the current ProductInfoHeaderValue object.

GetHashCode()

Serves as a hash function for an ProductInfoHeaderValue object.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Parse(String)

Converts a string to an ProductInfoHeaderValue instance.

ToString()

Returns a string that represents the current ProductInfoHeaderValue object.

TryParse(String, ProductInfoHeaderValue)

Determines whether a string is valid ProductInfoHeaderValue information.

Explicit Interface Implementations

ICloneable.Clone()

Creates a new object that is a copy of the current ProductInfoHeaderValue instance.

Applies to