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 |
---|---|
System.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 API key at a global level for your application using this property, you can set an ApiKey property on any ArcGIS Runtime class that implements IApiKeyResource. When you set an individual ApiKey property on an IApiKeyResource it will override the default key at the global level (on the this property, in other words), enabling more granular usage telemetry and management for ArcGIS Online 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 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.10 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.10 - 100.12 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 100.15 |