CogLicense CheckLicense Method (String)Cognex VisionPro 9.8
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: 75.1.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 bits was not found or has expired. The message may also hold the internal error encounteredwhen reading the dongle.
See Also