Serializer SaveObjectToBytes Method Cognex VisionPro 9.20

Save an object to bytes.

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

public static UInt8Collection SaveObjectToBytes(
	IObject obj = null,
	SerializerOptionsConstants option = SerializerOptionsConstants.All
)

Parameters

obj (Optional)
Type: IObject
The object to save.
option (Optional)
Type: Cognex.Vision SerializerOptionsConstants
The option bits specifying what should be persisted. Default Value: Cognex.Vision.SerializerOptionsConstants.All.

Return Value

Type: UInt8Collection

The bytes.

Exceptions

ExceptionCondition
ArgumentExceptionThe supplied object reference is null.
ArgumentExceptionThe option argument is not valid.
See Also