ProductInfoHeaderValue ProductInfoHeaderValue ProductInfoHeaderValue ProductInfoHeaderValue Class

Definition

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

public ref class ProductInfoHeaderValue : ICloneable
public class ProductInfoHeaderValue : ICloneable
type ProductInfoHeaderValue = class
    interface ICloneable
Public Class ProductInfoHeaderValue
Implements ICloneable
Inheritance
ProductInfoHeaderValueProductInfoHeaderValueProductInfoHeaderValueProductInfoHeaderValue
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) ProductInfoHeaderValue(ProductHeaderValue) ProductInfoHeaderValue(ProductHeaderValue) ProductInfoHeaderValue(ProductHeaderValue)

Initializes a new instance of the ProductInfoHeaderValue class.

ProductInfoHeaderValue(String) ProductInfoHeaderValue(String) ProductInfoHeaderValue(String) ProductInfoHeaderValue(String)

Initializes a new instance of the ProductInfoHeaderValue class.

ProductInfoHeaderValue(String, String) ProductInfoHeaderValue(String, String) ProductInfoHeaderValue(String, String) ProductInfoHeaderValue(String, String)

Initializes a new instance of the ProductInfoHeaderValue class.

Properties

Comment Comment Comment Comment

Gets the comment from the ProductInfoHeaderValue object.

Product Product Product Product

Gets the product from the ProductInfoHeaderValue object.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for an ProductInfoHeaderValue object.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Parse(String) Parse(String) Parse(String) Parse(String)

Converts a string to an ProductInfoHeaderValue instance.

ToString() ToString() ToString() ToString()

Returns a string that represents the current ProductInfoHeaderValue object.

TryParse(String, ProductInfoHeaderValue) TryParse(String, ProductInfoHeaderValue) TryParse(String, ProductInfoHeaderValue) TryParse(String, ProductInfoHeaderValue)

Determines whether a string is valid ProductInfoHeaderValue information.

Explicit Interface Implementations

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

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

Applies to