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 |
|---|---|---|
| Uri | serviceUri | The service that can be accessed with this credential. |
| ICredentials | credentials | The credentials used to access the service with HTTP authentication. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 200.8 |
| .NET | 100.14 - 300.0 |
| .NET Windows | 100.14 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.14 - 200.8 |
| Xamarin.Android | 100.14 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.14 - 200.8 |
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 |
|---|---|---|
| string | serviceUrl | The service that can be accessed with this credential. |
| ICredentials | credentials | The credentials used to access the service with HTTP authentication. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 200.8 |
| .NET | 100.14 - 300.0 |
| .NET Windows | 100.14 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.14 - 200.8 |
| Xamarin.Android | 100.14 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.14 - 200.8 |
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 |
|---|---|---|
| Uri | serviceUri | The service that can be accessed with this credential. |
| string | username | The user name. |
| string | password | The password. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 200.8 |
| .NET | 100.14 - 300.0 |
| .NET Windows | 100.14 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.14 - 200.8 |
| Xamarin.Android | 100.14 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.14 - 200.8 |
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 |
|---|---|---|
| string | serviceUrl | The service that can be accessed with this credential. |
| string | username | The user name. |
| string | password | The password. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 200.8 |
| .NET | 100.14 - 300.0 |
| .NET Windows | 100.14 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.14 - 200.8 |
| Xamarin.Android | 100.14 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.14 - 200.8 |
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 |
|---|---|---|
| Uri | serviceUri | The service that can be accessed with this credential. |
| string | username | The user name. |
| string | password | The password. |
| string | domain | The domain. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 200.8 |
| .NET | 100.14 - 300.0 |
| .NET Windows | 100.14 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.14 - 200.8 |
| Xamarin.Android | 100.14 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.14 - 200.8 |
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 |
|---|---|---|
| string | serviceUrl | The service that can be accessed with this credential. |
| string | username | The user name. |
| string | password | The password. |
| string | domain | The domain. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 200.8 |
| .NET | 100.14 - 300.0 |
| .NET Windows | 100.14 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.14 - 200.8 |
| Xamarin.Android | 100.14 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.14 - 200.8 |