Adds the specified annotatation category to the database.
Namespace: Cognex.VisionPro.InspectionAssembly: Cognex.VisionPro.Inspection (in Cognex.VisionPro.Inspection.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax
Parameters
- newAnnotationCategory
- Type: Cognex.VisionPro.Inspection CogVerificationAnnotationCategory
The new annotation category to add.
Events
| Event Type | Reason |
|---|---|
| InspectionAddedAnnotationCategoryEvent | Fires at the end of a call to this method. |
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if not currently connected. |
| ArgumentNullException | Thrown if newAnnotationCategory Name is null. |
| ArgumentNullException | Thrown if newAnnotationCategory Name is not unique. |
See Also