ClassifyPattern RemoveClassItemUsingId Method Cognex VisionPro 9.10

Removes the class item with the specified class id from Classes Collection.

Namespace: Cognex.Vision.ViDiEL
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.10.0.0
Syntax

public void RemoveClassItemUsingId(
	string classId
)

Parameters

classId
Type: System String
The class id in the Classes collection to remove.
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionIf the supplied label id is not found in the collection.
Remarks

If the pattern is trained, and the class id is in the LabeledImages, the pattern will become untrained.

If the class id is used in the LabeledImages, all train items referencing the class id will be removed as well.

Changed Raised when the value of this property changes. The following state flags may be affected:

See Also