Method SetLicense
SetLicense(String)
Sets the license of an ArcGIS Runtime deployment using an Esri license string.
Declaration
public static LicenseResult SetLicense(string licenseKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | licenseKey | The Lite, Basic, Standard, or Advanced Esri license string. |
Returns
Type | Description |
---|---|
LicenseResult | The LicenseResult of the specified license string. |
Remarks
For additional information on licensing an ArcGIS Runtime application, see License and deployment.
See Also
Applies to
Platforms and versions
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 |
SetLicense(LicenseInfo)
Sets the license of an ArcGIS Runtime deployment using LicenseInfo.
Declaration
public static LicenseResult SetLicense(LicenseInfo licenseInfo)
Parameters
Type | Name | Description |
---|---|---|
LicenseInfo | licenseInfo | The LicenseInfo used for named-user access. |
Returns
Type | Description |
---|---|
LicenseResult | The LicenseResult of the specified license information. |
Remarks
This method licenses an ArcGIS Runtime deployment using license info for named-user access. A license info instance can be obtained from a portal for the current signed in user. The license info instance is only valid for 30 days so the user will be required to sign in to the portal again when this expires. For additional information on licensing an ArcGIS Runtime application, see License and deployment.
See Also
Applies to
Platforms and versions
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 |
SetLicense(String, IEnumerable<String>)
Sets the license of an ArcGIS Runtime deployment using an Esri license string and extension license strings.
Declaration
public static LicenseResult SetLicense(string licenseKey, IEnumerable<string> extensions)
Parameters
Type | Name | Description |
---|---|---|
System.String | licenseKey | The Lite, Basic, Standard, or Advanced Esri license string. |
IEnumerable<System.String> | extensions | A sequence of extension license strings. |
Returns
Type | Description |
---|---|
LicenseResult | The LicenseResult of the specified license strings. |
Remarks
This method sets the main license and any ArcGIS extension licenses using Esri license strings. For additional information on licensing an ArcGIS Runtime application, see License and deployment.
See Also
Applies to
Platforms and versions
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.14 |