HttpRequestHeaderCollection.Authorization 属性

定义

获取或设置 HttpCredentialsHeaderValue 对象,该对象表示 HTTP 请求上的 授权 HTTP 标头的值。

public:
 property HttpCredentialsHeaderValue ^ Authorization { HttpCredentialsHeaderValue ^ get(); void set(HttpCredentialsHeaderValue ^ value); };
HttpCredentialsHeaderValue Authorization();

void Authorization(HttpCredentialsHeaderValue value);
public HttpCredentialsHeaderValue Authorization { get; set; }
var httpCredentialsHeaderValue = httpRequestHeaderCollection.authorization;
httpRequestHeaderCollection.authorization = httpCredentialsHeaderValue;
Public Property Authorization As HttpCredentialsHeaderValue

属性值

HTTP 请求上的 授权 HTTP 标头的值。 null 值表示标头不存在。

适用于

另请参阅