Show / Hide Table of Contents

Constructor ArcGISNetworkCredential

ArcGISNetworkCredential(Uri, ICredentials)

Initializes a new instance of the ArcGISNetworkCredential class for the specified service with the specified credentials.

Declaration
public ArcGISNetworkCredential(Uri serviceUri, ICredentials credentials)
Parameters
Type Name Description
System.Uri serviceUri

The service that can be accessed with this credential.

System.Net.ICredentials credentials

The credentials used to access the service with HTTP authentication.

Exceptions
Type Condition
System.ArgumentNullException

serviceUri or credentials is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7

ArcGISNetworkCredential(String, ICredentials)

Initializes a new instance of the ArcGISNetworkCredential class for the specified service with the specified credentials.

Declaration
public ArcGISNetworkCredential(string serviceUrl, ICredentials credentials)
Parameters
Type Name Description
System.String serviceUrl

The service that can be accessed with this credential.

System.Net.ICredentials credentials

The credentials used to access the service with HTTP authentication.

Exceptions
Type Condition
System.ArgumentNullException

serviceUrl or credentials is null.

System.ArgumentException

serviceUrl is not a valid URI.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7

ArcGISNetworkCredential(Uri, String, String)

Initializes a new instance of the ArcGISNetworkCredential class for the specified service with the specified user name and password.

Declaration
public ArcGISNetworkCredential(Uri serviceUri, string username, string password)
Parameters
Type Name Description
System.Uri serviceUri

The service that can be accessed with this credential.

System.String username

The user name.

System.String password

The password.

Exceptions
Type Condition
System.ArgumentNullException

serviceUri is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7

ArcGISNetworkCredential(String, String, String)

Initializes a new instance of the ArcGISNetworkCredential class for the specified service with the specified user name and password.

Declaration
public ArcGISNetworkCredential(string serviceUrl, string username, string password)
Parameters
Type Name Description
System.String serviceUrl

The service that can be accessed with this credential.

System.String username

The user name.

System.String password

The password.

Exceptions
Type Condition
System.ArgumentNullException

serviceUrl is null.

System.ArgumentException

serviceUrl is not a valid URI.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7

ArcGISNetworkCredential(Uri, String, String, String)

Initializes a new instance of the ArcGISNetworkCredential class for the specified service with the specified user name, password, and domain.

Declaration
public ArcGISNetworkCredential(Uri serviceUri, string username, string password, string domain)
Parameters
Type Name Description
System.Uri serviceUri

The service that can be accessed with this credential.

System.String username

The user name.

System.String password

The password.

System.String domain

The domain.

Exceptions
Type Condition
System.ArgumentNullException

serviceUri is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7

ArcGISNetworkCredential(String, String, String, String)

Initializes a new instance of the ArcGISNetworkCredential class for the specified service with the specified user name, password, and domain.

Declaration
public ArcGISNetworkCredential(string serviceUrl, string username, string password, string domain)
Parameters
Type Name Description
System.String serviceUrl

The service that can be accessed with this credential.

System.String username

The user name.

System.String password

The password.

System.String domain

The domain.

Exceptions
Type Condition
System.ArgumentNullException

serviceUrl is null.

System.ArgumentException

serviceUrl is not a valid URI.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7
In This Article
Back to top Copyright © 2022 Esri.