HttpRequestHeaderCollection.Authorization HttpRequestHeaderCollection.Authorization HttpRequestHeaderCollection.Authorization HttpRequestHeaderCollection.Authorization HttpRequestHeaderCollection.Authorization Property

Definition

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

public : HttpCredentialsHeaderValue Authorization { get; set; }
HttpCredentialsHeaderValue Authorization();

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

Property Value

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

See also