CogLicense IsDateWithinMaintenancePeriod Method (Boolean)Cognex VisionPro 9.8
Checks if the internal VisionPro release date is within VisionPro.Generic maintenance period.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax

public static bool IsDateWithinMaintenancePeriod(
	bool throwOnInternalError
)

Parameters

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: Boolean
True if internal VisionPro release date is within the maintenance period. otherwise it is false.
Exceptions

ExceptionCondition
CogSecurityViolationExceptionIf the security bits was not found or has expired. The message may also hold the internal error encounteredwhen reading the dongle.
See Also