CogVerificationData CheckStructure Method Cognex VisionPro 9.24
Checks the structure of the contained ICogRecord to make sure that it contains the necessary SubRecords for use in the verification framework. This method will throw various exceptions describing any found errors. This method does not check the "Results" SubRecord since it may not be present. If no errors are found, no exception is thrown and this method just returns.

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

public void CheckStructure()
Exceptions

ExceptionCondition
CogInvalidStructureExceptionThrown if the contained record is null.
CogInvalidStructureExceptionThrown if the contained record's key is null.
CogInvalidStructureExceptionThrown if the contained record does not have the Attributes SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Attributes.CreationTimestamp SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Attributes.Description SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Attributes.Name SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Attributes.Version SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Params SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Params.ExpectedOutputs SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Params.ExpectedRunStatus SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Params.Inputs SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Params.ExpectedRunStatus.SimpleResult SubRecord.
CogInvalidStructureExceptionThrown if the contained record does not have the Params.ExpectedOutputs.Grade SubRecord.
CogInvalidStructureExceptionThrown if the contained record's InputImage SubRecord is invalid.
See Also