Adds the specified grade to the database.
Namespace: Cognex.VisionPro.InspectionAssembly: Cognex.VisionPro.Inspection (in Cognex.VisionPro.Inspection.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax
Parameters
- newGrade
- Type: System String
The new grade to add.
Events
| Event Type | Reason |
|---|---|
| InspectionAddedGradeEvent | Fires at the end of a call to this method. |
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if not currently connected. |
| ArgumentNullException | Thrown if newGrade is null. |
| ArgumentNullException | Thrown if newGrade is not unique. |
See Also