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

System.Net.WebRequest.Credentials Property

Gets or sets the credentials used for authenticating the client using the current instance. [Edit]

public virtual ICredentials Credentials { set; get; }

Value

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

Exceptions

TypeReason
NotSupportedExceptionThis property is not implemented in the derived class. [Edit]

Remarks

Operation
As described above.

This property throws NotSupportedException.

Note to Inheritors
This property is required to be overridden by classes that inherit from System.Net.WebRequest.

Usage
Use this property to store or access the user, password, and domain information of the current instance.

[Edit]

Requirements

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