CogVerificationDatabase AddAnnotationCategory Method Cognex VisionPro
Adds the specified annotatation category to the database.

Namespace: Cognex.VisionPro.Inspection
Assembly: Cognex.VisionPro.Inspection (in Cognex.VisionPro.Inspection.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax

public void AddAnnotationCategory(
	CogVerificationAnnotationCategory newAnnotationCategory
)
Events

Event TypeReason
InspectionAddedAnnotationCategoryEvent Fires at the end of a call to this method.
Exceptions

ExceptionCondition
InvalidOperationException Thrown if not currently connected.
ArgumentNullException Thrown if newAnnotationCategory Name is null.
ArgumentNullException Thrown if newAnnotationCategory Name is not unique.
See Also