Append the vision data with a specified comment to the end of an open file.
Namespace: Cognex.VisionPro.ImageFileAssembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 79.0.0.0
Syntax
Parameters
- newData
- Type: Cognex.VisionPro ICogVisionData
The vision data to append to the file.
- comment
- Type: System String
A comment that describes the vision data. If NULL, then this argument is ignored.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | <para>Fires when the value of this property changes.</para><para>The following state flag may be affected:</para><list type="bullet",<item><see cref="F:Cognex.VisionPro.ImageFile.CogVisionDataFileCDB.SfCount"/></item></list> |
Exceptions
| Exception | Condition |
|---|---|
| [T:Cognex.VisionPro.Exceptions.CogNoFileOpenException>] | The file is not open. |
| [T:Cognex.VisionPro.Exceptions.CogBadFileModeException>] | The mode is Read, so the CDB file cannot be written to. |
| ArgumentNullException | newData is NULL. |
| ObjectDisposedException | This CDB file has been disposed. |
See Also