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 執行個體的複本。

適用於