Sdílet prostřednictvím


HttpRequestHeaderCollection.Authorization Property

Definition

Gets or sets the HttpCredentialsHeaderValue object that represents the value of an Authorization HTTP header on an HTTP request.

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

Property Value

The value of an Authorization HTTP header on an HTTP request. A null value means that the header is absent.

Applies to

See also