Loads an object from a file in the specified format.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 91.0.0.0
Syntax
Parameters
- path
- Type: System String
The path to the input file.
- formatterType
- Type: System Type
The type of formatter to use. Use a BinaryFormatter to save the object as binary data. For example, to use the BinaryFormatter in C# you would type: typeof(System.Runtime.Serialization.Formatters.Binary.BinaryFormatter)
Return Value
Type: ObjectThe loaded object.
Remarks
See Also