Class LicenseValidator
Manages licenses that unlock licensed features.
Inheritance
Namespace: ABB.Robotics.RobotStudio
Assembly: ABB.Robotics.RobotStudio.dll
Syntax
public static class LicenseValidator
Methods
View SourceAcquireLicense(LicenseFeature)
Acquires a license for the specified license feature and throws an exception if there is no valid license available.
Declaration
public static void AcquireLicense(LicenseFeature feature)
Parameters
| Type | Name | Description |
|---|---|---|
| LicenseFeature | feature |
Remarks
This should only be used in scenarios when it is not possible to use declarative code protection to enforce licensing.
GetLicenseInformation(LicenseFeature)
Returns information about the license state for a specific feature.
Declaration
public static LicenseInformation GetLicenseInformation(LicenseFeature feature)
Parameters
| Type | Name | Description |
|---|---|---|
| LicenseFeature | feature | The feature. |
Returns
| Type | Description |
|---|---|
| LicenseInformation | a LicenseInformation instance if a license exists for the feature or null otherwise. |
Remarks
Note that the State needs to be checked to see if the license is valid.
IsValidLicenseAvailable(LicenseFeature)
Checks if there is a valid license available for a feature, but does not perform a full validation.
Declaration
public static bool IsValidLicenseAvailable(LicenseFeature feature)
Parameters
| Type | Name | Description |
|---|---|---|
| LicenseFeature | feature |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
This should only be used as a hint if a licensed functionality should be enabled. Use declarative code protection to enforce licensing when the functionality is executed.