Load an object from a file, with option bits that cause fields to be selectively depersisted.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.25.1.0
Syntax
Parameters
- path
- Type: System String
The path to the input file.
- option
- Type: Cognex.Vision SerializerOptionsConstants
The option bits specifying what should be depersisted.
Return Value
Type: IObjectThe loaded object.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The path argument is not a valid file name. |
| FileOpenException | An error occurred while opening the specified file. |
| ArgumentException | The option argument is not valid. |
See Also