Represents an ArcGIS Maps SDK for .NET license.
public sealed class License
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 GetLicenseInfoAsync(). 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.
Gets the license expiry date and time in UTC.
Gets the collection of extension licenses for the app.
Gets a value indicating whether the license is perpetual.
Gets the current license level set in the app. See LicenseLevel for available levels.
Gets the current license status of the provided license.
Gets the license type of the current license.
|.NET Standard 2.0||100.3 - 200.0|
|.NET 6.0||100.13 - 200.0|
|.NET 6.0 Windows||100.13 - 200.0|
|.NET 6.0 Android||200|
|.NET 6.0 iOS||200|
|.NET Framework||100.0 - 200.0|
|.NET 5||100.10 - 100.12|
|.NET Core 3.1||100.7 - 100.12|
|Android||100.0 - 100.15|
|iOS||100.0 - 100.15|
|UWP||100.0 - 200.0|