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 |
---|---|---|
System.Uri | serviceUri | The proxy service accessed by this credential. |
System.String | authType | The HTTP authentication scheme used by the proxy. |
System.Net.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 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.10 - 200.5 |
Xamarin.Android | 100.10 - 100.14 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.5 |
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. |
System.Net.NetworkCredential | credentials | The credentials to submit to the proxy server for authentication. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.5 |
.NET | 100.14 - 200.5 |
.NET Windows | 100.14 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.14 - 200.5 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.5 |
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 |
---|---|---|
System.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 - 200.5 |
.NET | 100.14 - 200.5 |
.NET Windows | 100.14 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.14 - 200.5 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.5 |
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 |
|
System.ArgumentException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.5 |
.NET | 100.14 - 200.5 |
.NET Windows | 100.14 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.14 - 200.5 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.5 |
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 |
---|---|---|
System.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 - 200.5 |
.NET | 100.14 - 200.5 |
.NET Windows | 100.14 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.14 - 200.5 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.5 |
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 |
|
System.ArgumentException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.5 |
.NET | 100.14 - 200.5 |
.NET Windows | 100.14 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.14 - 200.5 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.5 |