CogLicense CheckLicenseState Method Cognex VisionPro 9.8
Returns the state of a licensed feature.

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

public static CogLicenseResultConstants CheckLicenseState(
	CogLicenseConstants lic
)

Return Value

Type: CogLicenseResultConstants
The state of the license one of the following states: Valid, Expired, NotFound.
Exceptions

ExceptionCondition
[T:Cognex::VisionPro::Exceptions::CogSecurityViolationException]If the licensed features could not be read due to an internal error. The message will indicate the internal error encountered.
See Also