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
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |