Rename a class in the Classes collection.
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.10.0.0
Syntax
Parameters
- oldName
- Type: System String
The class in the Classes collection to rename.
- newName
- Type: System String
The new name.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | If the old name and the new name are the same. |
| ArgumentException | If the new name is found in the Classes collection. |
| ArgumentException | If 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