Serializer LoadObjectFromFile Method (String, SerializerOptionsConstants)Cognex VisionPro 9.24

Load an object from a file, with option bits that cause fields to be selectively depersisted.

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

public static IObject LoadObjectFromFile(
	string path,
	SerializerOptionsConstants option
)

Return Value

Type: IObject

The loaded object.

Exceptions

ExceptionCondition
ArgumentExceptionThe path argument is not a valid file name.
FileOpenExceptionAn error occurred while opening the specified file.
ArgumentExceptionThe option argument is not valid.
See Also