Property ApiKey
ApiKey
Gets or sets the default API key to access API key enabled services and resources in ArcGIS Online.
Declaration
public static string ApiKey { get; set; }
Property Value
Type | Description |
---|---|
String | The default API key to access API key enabled services and resources in ArcGIS Online. |
Remarks
An API key is a unique key used to authorize access to specific services and resources in ArcGIS Online. It is also used to monitor access to those services. API keys are created and managed in the ArcGIS developer dashboard and are tied to a specific ArcGIS account.
In addition to setting an ApiKey at a global level for your application, you can set it on any class that implements IApiKeyResource. This overrides the ApiKey and enables more granular usage telemetry and management of ArcGIS location resources used by your app.
Classes that expose an API key property by implementing IApiKeyResource include:
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 200.2 |
.NET 6.0 | 100.13 - 200.2 |
.NET 6.0 Windows | 100.13 - 200.2 |
.NET 6.0 Android | 200.0 - 200.2 |
.NET 6.0 iOS | 200.0 - 200.2 |
.NET Framework | 100.10 - 200.2 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.10 - 100.12 |
Android | 100.10 - 100.15 |
iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.2 |