Show / Hide Table of Contents

Constructor ArcGISTokenCredential

ArcGISTokenCredential(Uri, String, GenerateTokenOptions)

Initializes a new instance of the ArcGISTokenCredential class.

Declaration
public ArcGISTokenCredential(Uri serviceUri, string token, GenerateTokenOptions generateTokenOptions = null)
Parameters
Type Name Description
Uri serviceUri

The service that can be accessed with this credential.

String token

The token.

GenerateTokenOptions generateTokenOptions

Optional information about how to generate the token.

Exceptions
Type Condition
ArgumentNullException

serviceUri or token is null.

Applies to

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