CogLicense IsEitherLicenseEnabled Method Cognex VisionPro 9.8
Checks if either of specified licensed features 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 bool IsEitherLicenseEnabled(
	CogLicenseConstants lic1,
	CogLicenseConstants lic2,
	bool throwOnInternalError
)

Parameters

lic1
Type: Cognex.VisionPro CogLicenseConstants
Specifies the licensed feature.
lic2
Type: Cognex.VisionPro CogLicenseConstants
Specifies the licensed feature.
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 the either of the specified licensed features was found and has not expired, otherwise false.
Exceptions

ExceptionCondition
[T:Cognex::VisionPro::Exceptions::CogSecurityViolationException]If the licensed features could not be read due to an internal error, and the throwOnInternalError is set to true.
See Also