Show / Hide Table of Contents

Method SetLicense

SetLicense(String)

Sets the license of an ArcGIS Maps SDK for .NET 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 Maps SDKs for .NET applications, see License and deployment.

See Also
SetLicense(LicenseInfo)
SetLicense(String, IEnumerable<String>)
ApiKey

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

SetLicense(LicenseInfo)

Sets the license of an ArcGIS Maps SDK for .NET 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 Maps SDK for .NET 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 Maps SDK for .NET 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 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

SetLicense(String, IEnumerable<String>)

Sets the license of an ArcGIS Maps SDK for .NET 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.

System.Collections.Generic.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 Maps SDK for .NET application, see License and deployment.

See Also
SetLicense(LicenseInfo)
SetLicense(String)
ApiKey

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.