Save an object to a file, with option bits that cause fields to be selectively persisted.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Syntax
Parameters
- obj
- Type: IObject
The object to save.
- path
- Type: System String
The path to the file.
- option
- Type: Cognex.Vision SerializerOptionsConstants
The option bits specifying what should be persisted.
Exceptions
| Exception | Condition |
|---|---|
| FileOpenException | An error occurred while opening the specified file. |
| ArgumentException | The supplied object reference is null. |
| ArgumentException | The path argument is not a valid file name. |
| ArgumentException | The option argument is not valid. |
See Also