CogVerificationDatabase AddGrade Method Cognex VisionPro 9.21 SR1
Adds the specified grade to the database.

Namespace: Cognex.VisionPro.Inspection
Assembly: Cognex.VisionPro.Inspection (in Cognex.VisionPro.Inspection.dll) Version: 85.1.0.0 (85.1.0.0)
Syntax

public void AddGrade(
	string newGrade
)

Parameters

newGrade
Type: System String
The new grade to add.
Events

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

ExceptionCondition
InvalidOperationException Thrown if not currently connected.
ArgumentNullException Thrown if newGrade is null.
ArgumentNullException Thrown if newGrade is not unique.
See Also