共用方式為


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 值表示標頭不存在。

適用於

另請參閱