Class LicenseValidator
Manages licenses that unlock licensed features
Inheritance
LicenseValidator
Assembly: ABB.Robotics.RobotStudio.dll
Syntax
public static class LicenseValidator
Properties
View Source
CurrentVersion
Gets the version string required for licenses used by the current product version.
Declaration
public static string CurrentVersion { get; }
Property Value
View Source
Disabled
Indicates that all licensed functionality should be disabled, and the application should run in basic mode.
Declaration
public static bool Disabled { get; set; }
Property Value
View Source
Initialized
Declaration
public static bool Initialized { get; }
Property Value
Methods
View Source
AcquireFeatures(IEnumerable<string>)
Declaration
[Obsolete("No longer supported")]
public static void AcquireFeatures(IEnumerable<string> features)
Parameters
View Source
AcquireLicense(string)
Declaration
[Obsolete("Use declarative licensing")]
public static void AcquireLicense(string feature)
Parameters
| Type |
Name |
Description |
| string |
feature |
|
View Source
AcquireLicense(string, LicenseHoldType)
Declaration
[Obsolete("Use declarative licensing")]
public static bool AcquireLicense(string feature, LicenseHoldType hold)
Parameters
Returns
View Source
AcquireLicense(string, LicenseHoldType, bool, bool)
Declaration
[Obsolete("Use declarative licensing")]
public static bool AcquireLicense(string feature, LicenseHoldType hold, bool allowLocal, bool allowFloating)
Parameters
Returns
View Source
AcquireLicense(string, string, bool)
Declaration
[Obsolete("Use declarative licensing")]
public static bool AcquireLicense(string feature, string version, bool keep)
Parameters
Returns
View Source
AcquireLicenseToken(string)
Declaration
[Obsolete("Use declarative licensing")]
public static IDisposable AcquireLicenseToken(string feature)
Parameters
| Type |
Name |
Description |
| string |
feature |
|
Returns
View Source
GetInstalledLicenses()
Returns information about all licenses on the client and the server
Declaration
public static ReadOnlyCollection<LicenseInformation> GetInstalledLicenses()
Returns
View Source
GetLastError()
Declaration
[Obsolete("No longer supported")]
public static string GetLastError()
Returns
View Source
Returns information about the license for a specific feature
Declaration
public static bool GetLicenseInformation(string feature, out LicenseInformation licenseInformation)
Parameters
Returns
| Type |
Description |
| bool |
True if the feature was found
|
View Source
Declaration
[Obsolete("Use GetLicenseInformation(string feature, out LicenseInformation licenseInformation) instead")]
public static LicenseInformation GetLicenseInformation(string feature, string version)
Parameters
Returns
View Source
GetLicenseState(string)
Returns information about the license state for a specific feature
Declaration
public static string GetLicenseState(string feature)
Parameters
| Type |
Name |
Description |
| string |
feature |
Feature name
|
Returns
| Type |
Description |
| string |
"Valid" if a valid license exists, empty string or eror message otherwise.
|
View Source
Initialize()
This method must be called before any other licensing related or protected methods.
It will throw an exception if the license store is not properly configured.
Declaration
public static void Initialize()
View Source
Installs a binary license from a manual activation.
Declaration
public static bool InstallLicense(byte[] licenseKey, out LicenseInformation licenseInformation)
Parameters
Returns
View Source
Declaration
[Obsolete("Use InstallLicense(Byte[] licenseKey, out LicenseInformation licenseInformation) instead")]
public static bool InstallLicense(byte[] licenseKey, out LicenseInformation licenseInformation, bool checkOverwrite)
Parameters
Returns
View Source
IsNotLicensedException(Exception)
Returns true if an Exception is caused by executing a protected method when no valid license is available.
Declaration
public static bool IsNotLicensedException(this Exception ex)
Parameters
Returns
View Source
IsValidLicenseAvailable(string)
Checks if there is a valid license available for a feature,
but does not perform a full validation.
Declaration
public static bool IsValidLicenseAvailable(string feature)
Parameters
| Type |
Name |
Description |
| string |
feature |
|
Returns
View Source
ReleaseLicense(string)
Declaration
[Obsolete("Use declarative licensing")]
public static void ReleaseLicense(string feature)
Parameters
| Type |
Name |
Description |
| string |
feature |
|
View Source
ReleaseLicense(string, string)
Declaration
[Obsolete("Use declarative licensing")]
public static void ReleaseLicense(string feature, string version)
Parameters
View Source
Shutdown()
Declaration
[Obsolete("No longer required")]
public static void Shutdown()
View Source
TryAcquireLicense(string)
Declaration
[Obsolete("Use declarative licensing")]
public static bool TryAcquireLicense(string feature)
Parameters
| Type |
Name |
Description |
| string |
feature |
|
Returns
View Source
UninstallLicense(string)
Uninstalls the license with the specified activation key.
Declaration
public static bool UninstallLicense(string activationKey)
Parameters
| Type |
Name |
Description |
| string |
activationKey |
|
Returns