IWebProxy.Credentials Property

 

The credentials to submit to the proxy server for authentication.

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

abstract Credentials : ICredentials with get, set

Property Value

Type: System.Net.ICredentials

An ICredentials instance that contains the credentials that are needed to authenticate a request to the proxy server.

The Credentials property is an ICredentials instance that contains the authorization credentials to send to the proxy server in response to an HTTP 407 (proxy authorization) status code.

The following example uses the Credentials property to set the credentials that will be submitted to the proxy server for authentication.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: