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.InspectionAssembly: Cognex.VisionPro.Inspection (in Cognex.VisionPro.Inspection.dll) Version: 91.0.0.0 (91.0.0.0)
Syntax
Exceptions
| Exception | Condition |
|---|---|
| CogInvalidStructureException | Thrown if the contained record is null. |
| CogInvalidStructureException | Thrown if the contained record's key is null. |
| CogInvalidStructureException | Thrown if the contained record does not have the Attributes SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Attributes.CreationTimestamp SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Attributes.Description SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Attributes.Name SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Attributes.Version SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Params SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Params.ExpectedOutputs SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Params.ExpectedRunStatus SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Params.Inputs SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Params.ExpectedRunStatus.SimpleResult SubRecord. |
| CogInvalidStructureException | Thrown if the contained record does not have the Params.ExpectedOutputs.Grade SubRecord. |
| CogInvalidStructureException | Thrown if the contained record's InputImage SubRecord is invalid. |
See Also