AuthenticationHeaderValue 類別

定義

代表 Authorization、ProxyAuthorization、WWW-Authenticate 和 Proxy-Authenticate 標頭值中的驗證資訊。

public ref class AuthenticationHeaderValue
public ref class AuthenticationHeaderValue : ICloneable
public class AuthenticationHeaderValue
public class AuthenticationHeaderValue : ICloneable
type AuthenticationHeaderValue = class
type AuthenticationHeaderValue = class
    interface ICloneable
Public Class AuthenticationHeaderValue
Public Class AuthenticationHeaderValue
Implements ICloneable
繼承
AuthenticationHeaderValue
實作

備註

AuthenticationHeaderValue 類別支援 IETF 在 RFC 2616 中定義的授權、代理授權、WWW-Authenticate 及 Proxy-Authenticate HTTP 標頭值。

建構函式

名稱 Description
AuthenticationHeaderValue(String, String)

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

AuthenticationHeaderValue(String)

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

屬性

名稱 Description
Parameter

取得包含用戶代理認證資訊的憑證,該資源被請求的資源。

Scheme

取得該方案以取得授權。

方法

名稱 Description
Equals(Object)

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

GetHashCode()

作為物件的 AuthenticationHeaderValue 雜湊函數。

GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
Parse(String)

將字串轉換成實 AuthenticationHeaderValue 例。

ToString()

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

TryParse(String, AuthenticationHeaderValue)

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

明確介面實作

名稱 Description
ICloneable.Clone()

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

適用於