Show / Hide Table of Contents

Method UseLicense

UseLicense(IArcGISConfiguration, String)

Adds a license using an Esri license string.

Declaration
public static IArcGISConfiguration UseLicense(this IArcGISConfiguration configuration, string license)
Parameters
Type Name Description
IArcGISConfiguration configuration

ArcGIS Configuration

System.String license

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

Returns
Type Description
IArcGISConfiguration

A reference to this instance after the operation has completed.

Remarks

A license key can also be obtained from an authenticated ArcGIS Portal instance using GetLicenseInfoAsync(), and then set using SetLicense(LicenseInfo).

See Also
GetLicense()
SetLicense(String)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.0 - 200.7
.NET200.0 - 200.7
.NET Windows200.0 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework200.0 - 200.7
UWP200.0 - 200.7

UseLicense(IArcGISConfiguration, String, String[])

Adds a license using an Esri license string.

Declaration
public static IArcGISConfiguration UseLicense(this IArcGISConfiguration configuration, string license, params string[] extensions)
Parameters
Type Name Description
IArcGISConfiguration configuration

ArcGIS Configuration

System.String license

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

System.String[] extensions

A collection of license string extensions.

Returns
Type Description
IArcGISConfiguration

A reference to this instance after the operation has completed.

See Also
GetLicense()
SetLicense(String, IEnumerable<String>)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.0 - 200.7
.NET200.0 - 200.7
.NET Windows200.0 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework200.0 - 200.7
UWP200.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.