Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.Credentials Property

Gets or sets the credentials used for authenticating the current request. [Edit]

public override ICredentials Credentials { set; get; }

Value

A System.Net.ICredentials object containing the authentication credentials associated with the current instance. The default is null. [Edit]

Remarks

Note:

The HttpWebRequest.Credentials property contains authentication information to identify the client making the request. The HttpWebRequest.Credentials property can be either an instance of System.Net.NetworkCredential, in which case the user, password, and domain information contained in the System.Net.NetworkCredential instance is used to authenticate the request, or it can be an instance of System.Net.CredentialCache, in which case the uniform resource identifier (URI) of the request is used to determine the user, password, and domain information to use to authenticate the request.

This property overrides WebRequest.Credentials .

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0