CogLicense GetLicensedFeatures Method Cognex VisionPro 9.5
Returns licensed features that have not expired.

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

public static CogStringCollection GetLicensedFeatures(
	bool includeNonVisionProFeatures,
	bool throwOnInternalError
)

Parameters

includeNonVisionProFeatures
Type: System Boolean
If includeNonVisionProFeatures is set to true, the method willreturn all licensed features. Otherwise only VisionPro licensed featureswill be returned.
throwOnInternalError
Type: System Boolean
If throwOnInternalError is set to false, the method willreturn an empty collection if an internal error is encountered. if true, the method will throw CogSecurityViolationExceptionwith a message indicating the internal error encountered.

Return Value

Type: CogStringCollection
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