UsageConstraint..::..Validate Method
This verifies the license meets its desired validation criteria. This includes validating that the license has not been used more times then the usage constraint allows. The usage constraints available are: Hit Count - The maximum number of hits for a web services.Usage Count - The maximum number of uses for an application.Duration - The maximum number of days this may be used. If any of these values are exceeded then the license validation will return false and the failure reason will be set.
Assembly: CAS.CodeProtect (in CAS.CodeProtect.dll)
Syntax
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.