WebClient.Credentials Property

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

Gets or sets the network credentials that are sent to the host and used to authenticate the request.

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

Syntax

Public Property Credentials As ICredentials
public ICredentials Credentials { get; set; }

Property Value

Type: System.Net..::.ICredentials
An ICredentials containing the authentication credentials for the request. The default is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

The Credentials property contains the authentication credentials used to access a resource on a host.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

WebClient Class

System.Net Namespace