setLicenseUsingInfo static method

LicenseResult setLicenseUsingInfo(
  1. LicenseInfo licenseInfo
)

License an application for deployment using license info.

License an application for deployment using a license info for named-user access. A license info instance can be obtained from a portal for the current logged in user. The license info instance is only valid for 30 days so the user will be required to log into the portal again when this expires.

Parameters:

  • licenseInfo — The LicenseInfo used for named-user access.

Return Value: The LicenseResult of the main license attempting to be set.

Implementation

static LicenseResult setLicenseUsingInfo(
  LicenseInfo licenseInfo,
) {
  ArcGISHttpClient._userAgent = null;
  return _setLicenseUsingInfo(licenseInfo);
}