Load an object from bytes.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.25.1.0
Syntax
Parameters
- bytes (Optional)
- Type: Cognex.Vision UInt8Collection
The input bytes.
- option (Optional)
- Type: Cognex.Vision SerializerOptionsConstants
The option bits specifying what should be depersisted.
Field Value
Type: IObjectDefault Value: Cognex.Vision.SerializerOptionsConstants.All.
Return Value
Type: IObjectThe loaded object.
Exceptions
| Exception | Condition |
|---|---|
| SerializationException | An error occurred during deserialization. |
| ArgumentNullException | When the input byte collection is null. |
| ArgumentException | The option argument is not valid. |
See Also