Show / Hide Table of Contents

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

serviceUri, authType, or credentials is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.10 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.10 - 100.12
Xamarin.Android100.10 - 100.15
Xamarin.iOS100.10 - 100.15
UWP100.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

serviceUrl, authType, or credentials is null.

ArgumentException

serviceUrl is not a valid URI.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.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

serviceUri or authType is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.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

serviceUrl or authType is null.

ArgumentException

serviceUrl is not a valid URI.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.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

serviceUri or authType is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.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

serviceUrl or authType is null.

ArgumentException

serviceUrl is not a valid URI.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14
In This Article
Back to top Copyright © 2022 Esri.