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 中定义的 Authorization、ProxyAuthorization、WWW-Authenticate 和 Proxy-Authenticate HTTP 标头值。

构造函数

名称 说明
AuthenticationHeaderValue(String, String)

初始化 AuthenticationHeaderValue 类的新实例。

AuthenticationHeaderValue(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 实例的副本。

适用于