Constructor ProxyCredential
ProxyCredential(Uri, String, NetworkCredential)
Initializes a new instance of the ProxyCredential class.
Declaration
public ProxyCredential(Uri serviceUri, string authType, NetworkCredential credentials)
Parameters
Type | Name | Description |
---|---|---|
Uri | serviceUri | The proxy service accessed by this credential. |
System.String | authType | The HTTP authentication scheme used by the proxy. |
NetworkCredential | credentials | The credentials to submit to the proxy server for authentication. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.10 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.10 - 100.12 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 100.14 |
ProxyCredential(String, String, NetworkCredential)
Initializes a new instance of the ProxyCredential class.
Declaration
public ProxyCredential(string serviceUrl, string authType, NetworkCredential credentials)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceUrl | The proxy service accessed by this credential. |
System.String | authType | The HTTP authentication scheme used by the proxy. |
NetworkCredential | credentials | The credentials to submit to the proxy server for authentication. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ArgumentException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |
ProxyCredential(Uri, String, String, String)
Initializes a new instance of the ProxyCredential class with the specified user name and password.
Declaration
public ProxyCredential(Uri serviceUri, string authType, string username, string password)
Parameters
Type | Name | Description |
---|---|---|
Uri | serviceUri | The URI of the proxy service accessed by this credential. |
System.String | authType | The HTTP authentication scheme used by the proxy. |
System.String | username | The user name. |
System.String | password | The password. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |
ProxyCredential(String, String, String, String)
Initializes a new instance of the ProxyCredential class with the specified user name and password.
Declaration
public ProxyCredential(string serviceUrl, string authType, string username, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceUrl | The proxy service accessed by this credential. |
System.String | authType | The HTTP authentication scheme used by the proxy. |
System.String | username | The user name. |
System.String | password | The password. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ArgumentException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |
ProxyCredential(Uri, String, String, String, String)
Initializes a new instance of the ProxyCredential class with the specified user name, password, and domain.
Declaration
public ProxyCredential(Uri serviceUri, string authType, string username, string password, string domain)
Parameters
Type | Name | Description |
---|---|---|
Uri | serviceUri | The proxy service accessed by this credential. |
System.String | authType | The HTTP authentication scheme used by the proxy. |
System.String | username | The user name. |
System.String | password | The password. |
System.String | domain | The domain. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |
ProxyCredential(String, String, String, String, String)
Initializes a new instance of the ProxyCredential class with the specified user name, password, and domain.
Declaration
public ProxyCredential(string serviceUrl, string authType, string username, string password, string domain)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceUrl | The proxy service accessed by this credential. |
System.String | authType | The HTTP authentication scheme used by the proxy. |
System.String | username | The user name. |
System.String | password | The password. |
System.String | domain | The domain. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ArgumentException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |