CogLicense CheckLicense Method (String)Cognex VisionPro 9.24
Checks if the licensed feature specified is valid and has not expired.

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

public static void CheckLicense(
	string licstr
)

Parameters

licstr
Type: System String
Specifies the licensed feature using a string such as VisionPro.Blob.
Exceptions

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