Credentials Property

HttpWebRequest.Credentials Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

In 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft