Class License
Represents an ArcGIS Runtime license.
Namespace: Esri.ArcGISRuntime
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class License
Remarks
Until an app is licensed, it runs at the Developer license level. All functionality is available, but the map display is watermarked and the API logs messages stating that the app is in developer mode.
A deployed app needs to be run at minimum with the Lite license level to disable the map watermark. The Lite, Basic, Standard, or Advanced license level is set by calling SetLicense(String) with a license string obtained from the ArcGIS for Developers website or Esri Customer Service. With the varying license levels, a subset of functionality is available. Any attempt to use licensed functionality that is not available at the current license level will log or emit error messages.
To get Lite, Basic, Standard, or Advanced license level functionality, a user app is licensed in one of two ways:
- With license information retrieved after logging in to a portal (Lite and Basic levels).
- With a license string acquired from the ArcGIS for Developers website or Esri Customer Service.
To license with a license string, call SetLicense(String).
To validate with information from a portal, you need a LicenseInfo instance. You can get one by calling LicenseInfo. Pass the LicenseInfo to SetLicense(LicenseInfo).
Both of these methods return a LicenseResult that reports the status of the license. Note that there is a 30-day timeout when using LicenseInfo. If the app is licensed using this method, the user must log in to the portal again before licensing the app. When this period has expired, calling SetLicense(LicenseInfo) returns a LicenseResult which contains license status of LoginRequired, and the app continues to run at the current license level (default is Developer.
Properties
Name | Description |
---|---|
Expiry | Gets the license expiry date and time in UTC. |
Extensions | Gets the collection of extension licenses for the app. |
IsPermanent | Gets a value indicating whether the license is perpetual. |
LicenseLevel | Gets the current license level set in the app. See LicenseLevel for available levels. |
LicenseStatus | Gets the current license status of the provided license. |
LicenseType | Gets the license type of the current license. |
See Also
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |