Saves an object to a string in a specified format.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.1.0.0
[ObsoleteAttribute("This method is deprecated.", false)]
public static string SaveObjectToString(
Object obj,
Type formatterType
)[ObsoleteAttribute("This method is deprecated.", false)]
public static string SaveObjectToString(
Object obj,
Type formatterType
)<ObsoleteAttribute("This method is deprecated.", false)>
Public Shared Function SaveObjectToString (
obj As Object,
formatterType As Type
) As String<ObsoleteAttribute("This method is deprecated.", false)>
Public Shared Function SaveObjectToString (
obj As Object,
formatterType As Type
) As Stringpublic:
[ObsoleteAttribute(L"This method is deprecated.", false)]
static String^ SaveObjectToString(
Object^ obj,
Type^ formatterType
)
public:
[ObsoleteAttribute(L"This method is deprecated.", false)]
static String^ SaveObjectToString(
Object^ obj,
Type^ formatterType
)
Parameters
- obj
- Type: System Object
The object to save.
- 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:
StringThe string containing the saved object.
To learn more about persisting objects, see
Persistence in VisionPro