AuthenticationHeaderValue 类

定义

表示 Authorization、ProxyAuthorization、WWW-Authneticate 和 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 中定义的 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 实例副本的新对象。

适用于