WebClient.Credentials Property

July 28, 2014

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)

public ICredentials Credentials { get; set; }

Property Value

Type: System.Net.ICredentials
An ICredentials containing the authentication credentials for the request. The default is null.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft