CogVerificationDatabase RemoveAnnotationCategory Method Cognex VisionPro
Removes the specified annotation category definition from the verification database. Note, this method does not remove any defined defects using the removed category, it just removes the definition of the annotation category. Users wanting to remove any defects using the removed annotation category need to do this themselves manually.

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 RemoveAnnotationCategory(
	string annotationCategoryToRemove
)

Parameters

annotationCategoryToRemove
Type: System String
Annotation category to remove.
Events

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

ExceptionCondition
InvalidOperationException Thrown if not currently connected.
ArgumentNullException Thrown if annoationCategoryToRemove is null.
ArgumentNullException Thrown if annoationCategoryToRemove not found.
See Also