Show / Hide Table of Contents

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
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
SetLicense(LicenseInfo)
SetLicense(String, IEnumerable<String>)
ApiKey

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.0 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.14
UWP100.0 - 100.14

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
SetLicense(String)
SetLicense(String, IEnumerable<String>)
ApiKey

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.0 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.14
UWP100.0 - 100.14

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
String licenseKey

The Lite, Basic, Standard, or Advanced Esri license string.

IEnumerable<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
SetLicense(LicenseInfo)
SetLicense(String)
ApiKey

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.0 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.14
UWP100.0 - 100.14
In This Article
Back to top Copyright © 2021 Esri.