Serializer LoadObjectFromBytes Method Cognex VisionPro 9.21

Load an object from bytes.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.0.0
Syntax

public static IObject LoadObjectFromBytes(
	UInt8Collection bytes = null,
	SerializerOptionsConstants option = SerializerOptionsConstants.All
)

Field Value

Type: IObject
Default Value: Cognex.Vision.SerializerOptionsConstants.All.

Return Value

Type: IObject

The loaded object.

Exceptions

ExceptionCondition
SerializationExceptionAn error occurred during deserialization.
ArgumentNullExceptionWhen the input byte collection is null.
ArgumentExceptionThe option argument is not valid.
See Also