Serializer SaveObjectToFile Method (, String)Cognex VisionPro 9.10

Save an object to a file.

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

public static void SaveObjectToFile(
	IObject obj,
	string path
)

Parameters

obj
Type: IObject
The object to save.
path
Type: System String
The path to the file.
Exceptions

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