Checks if either of specified licensed features is valid and has not expired.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.0.0.0
Syntax
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: BooleanTrue if the either of the specified licensed features was found and has not expired, otherwise false.
Exceptions
| Exception | Condition |
|---|---|
| [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