ClassifyPattern RenameClass Method Cognex VisionPro 9.20

Rename a class in the 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 RenameClass(
	string oldName,
	string newName
)
Exceptions

ExceptionCondition
ArgumentExceptionIf the old name and the new name are the same.
ArgumentExceptionIf the new name is found in the Classes collection.
ArgumentExceptionIf the old name is not found in the Classes collection.
Remarks

Note that because we use the class id in the LabeledImages, no changes will be done in the LabeledImages.

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

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

See Also