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 欄位包含發起請求的使用者代理資訊。 欄位可包含多個產品標記與註解,以識別使用者代理及任何子產品。

建構函式

名稱 Description
ProductInfoHeaderValue(ProductHeaderValue)

初始化 ProductInfoHeaderValue 類別的新執行個體。

ProductInfoHeaderValue(String, String)

初始化 ProductInfoHeaderValue 類別的新執行個體。

ProductInfoHeaderValue(String)

初始化 ProductInfoHeaderValue 類別的新執行個體。

屬性

名稱 Description
Comment

從物件那裡取得評論 ProductInfoHeaderValue

Product

從物體中取得乘積 ProductInfoHeaderValue

方法

名稱 Description
Equals(Object)

判斷指定的 Object 是否等於當前 ProductInfoHeaderValue 物件。

GetHashCode()

作為物件的 ProductInfoHeaderValue 雜湊函數。

GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
Parse(String)

將字串轉換成實 ProductInfoHeaderValue 例。

ToString()

回傳一個代表當前 ProductInfoHeaderValue 物件的字串。

TryParse(String, ProductInfoHeaderValue)

判斷字串是否為有效 ProductInfoHeaderValue 資訊。

明確介面實作

名稱 Description
ICloneable.Clone()

建立一個新的物件,該物件是目前 ProductInfoHeaderValue 實例的複製品。

適用於