Checks if the date provided is within VisionPro.Generic maintenance period.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax
Parameters
- year
- Type: System Int32
Specifies the date year, the value must be within [2018, 2100].
- month
- Type: System Int32
Specifies the date month, the value must be within [1,12].
- day
- Type: System Int32
Specifies the date day, the value must be within [1,31].
- throwOnInternalError
- Type: System Boolean
If throwOnInternalError is set to false, the method willreturn false if an internal error is encountered. if true, the method will throw CogSecurityViolationExceptionwith a message indicating the internal error encountered.
Return Value
Type: BooleanTrue if date is within the maintenance period. otherwise it is false.
Exceptions
| Exception | Condition |
|---|---|
| CogSecurityViolationException | If the security bits was not found or has expired. The message may also hold the internal error encounteredwhen reading the dongle. |
| [T:System::ArgumentException] | If the year, month and day are outside range values |
See Also