Defines the validation method of this Constraint. This
is the method the Constraint uses to accept or reject a
license request.
Namespace:
CAS.Lib.CodeProtect.LicenseDsc
Assembly:
CAS.CodeProtect (in CAS.CodeProtect.dll)
public virtual bool Validate(
Type typeToValidate,
ref int vc,
ref int rtc
)
Public Overridable Function Validate ( _
typeToValidate As Type, _
ByRef vc As Integer, _
ByRef rtc As Integer _
) As Boolean
public:
virtual bool^ Validate(
Type^ typeToValidate,
int^% vc,
int^% rtc
)
Parameters
- typeToValidate
- Type: Type
Type to validate
- vc
- Type: Int32%
Volume constraint - max number of items. -1 no constrain.
- rtc
- Type: Int32%
Runtime in hours. –1 means no limits.
Return Value
If
true the constraint applies to the validated type.
If Guid is not set for the constraint it applies to all types, otherwise the
constraint is validated only for the type having the equal Guid. For block constrains
like And and Or the composed constraint is validated if the block constraint Guid is not
set or is equal to the validating type guid. If a constraint is not validating it
is considered not valid.