HttpWebRequest.Credentials Property

Gets or sets authentication information for the request.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

public override ICredentials Credentials { get; set; }

Property Value

Type: System.Net.ICredentials
An ICredentials that contains the authentication credentials associated with the request. The default is null.

On Silverlight for Windows Phone, this method overrides the default WebRequest.Credentials property on the HttpWebRequest class. This property override applies only to the versions listed in "Version Information" later in this topic.

For more information, see the base class, WebRequest.Credentials.

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions