Method UseApiKey
UseApiKey(IArcGISConfiguration, String)
Adds a default API key used to access API key enabled services and resources on ArcGIS Online.
Declaration
public static IArcGISConfiguration UseApiKey(this IArcGISConfiguration configuration, string apiKey)
Parameters
Type | Name | Description |
---|---|---|
IArcGISConfiguration | configuration | ArcGIS Configuration |
System.String | apiKey | A string containing the API key. |
Returns
Type | Description |
---|---|
IArcGISConfiguration | A reference to this instance after the operation has completed. |
Remarks
A permanent token that grants your application access to ArcGIS location services. Create a new API key or access existing API keys from your ArcGIS for Developers dashboard.
If the user is authenticated with the ArcGIS.com Portal, an API key is not needed to access ArcGIS Online location services. See CreateAsync(Uri, Boolean).
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.0 - 200.3 |
.NET | 200.0 - 200.3 |
.NET Windows | 200.0 - 200.3 |
.NET Android | 200.0 - 200.3 |
.NET iOS | 200.0 - 200.3 |
.NET Framework | 200.0 - 200.3 |
UWP | 200.0 - 200.3 |