ComponentFactory.Krypton.Ribbon.EncryptedLicenseProvider.ValidateLicenseKey C# (CSharp) Method

ValidateLicenseKey() public method

Validate that the given license key is valid for the current licensing parameters
This method provides a mechanism to validate that a given license key is valid prior to attempting to install it. This can be useful if you want to check the EncryptedLicense.ProductInfo before installing the license. You must call SetParameters before using this method.
public ValidateLicenseKey ( string licenseKey ) : EncryptedLicense
licenseKey string The license key to validate
return EncryptedLicense
        public virtual EncryptedLicense ValidateLicenseKey(string licenseKey)
        {
            return LoadLicense(LicenseManager.CurrentContext, null, licenseKey);
        }