AuthenticationHeaderValue 類別

定義

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

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 中定義的 Authorization、ProxyAuthorization、WWW-Authenticate 和 Proxy-Authenticate HTTP 標頭值。

建構函式

AuthenticationHeaderValue(String)

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

AuthenticationHeaderValue(String, String)

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

屬性

Parameter

取得包含所要求資源的使用者代理程式之驗證資訊的認證。

Scheme

取得用於授權的配置。

方法

Equals(Object)

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

GetHashCode()

做為 AuthenticationHeaderValue 物件的雜湊函式。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Parse(String)

將字串轉換為 AuthenticationHeaderValue 執行個體。

ToString()

傳回表示目前 AuthenticationHeaderValue 物件的字串。

TryParse(String, AuthenticationHeaderValue)

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

明確介面實作

ICloneable.Clone()

建立新物件,為目前 AuthenticationHeaderValue 執行個體的複本。

適用於