CogSerializer LoadObjectFromString Method (String, Type)Cognex VisionPro 9.21 SR1
Loads an object from a string in a specified format.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 85.1.0.0
Syntax

[ObsoleteAttribute("This method is deprecated.", false)]
public static Object LoadObjectFromString(
	string source,
	Type formatterType
)

Parameters

source
Type: System String
The input string.
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: Object
The loaded object.
Remarks

To learn more about persisting objects, see Persistence in VisionPro
See Also