Class Restriction
Defines the base class for all types of restrictions.
Inheritance
System.Object
Restriction
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Core.License.Meriworks
Assembly: ImageVault.Core.dll
Syntax
public abstract class Restriction
Constructors
Restriction()
Declaration
protected Restriction()
Fields
IsValid
Is the restriction valid?
Declaration
protected bool IsValid
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
Description
Gets the description of the Restriction
Declaration
public abstract string Description { get; }
Property Value
Type | Description |
---|---|
System.String | The description |
IsSetup
Has the restriction passed the setup phase
Declaration
protected bool IsSetup { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
RequiredLicenseVersion
Gets the required License runtime version for this restriction
Declaration
public abstract int RequiredLicenseVersion { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
SignData
Defines the sign specific data.
Declaration
public abstract string SignData { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
InternalValidate()
Performs an internal validation of the restriction
Declaration
protected abstract void InternalValidate()
Setup()
Performs the setup phase of the restriction
Declaration
protected virtual void Setup()
Remarks
This method is called from the validation method and is only called once before the internal validate method is used. Initial setup procedures should be performed here.
Validate()
Performs the validation of the restriction
Declaration
public void Validate()
Exceptions
Type | Condition |
---|---|
ValidationException | If restriction validation fails |
LicenseException | If an exception regarding the setup of the validation occurs. |