Loads an object from a string in a specified format.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
[ObsoleteAttribute("This method is deprecated.", false)]
public static Object LoadObjectFromString(
string source,
Type formatterType
)[ObsoleteAttribute("This method is deprecated.", false)]
public static Object LoadObjectFromString(
string source,
Type formatterType
)<ObsoleteAttribute("This method is deprecated.", false)>
Public Shared Function LoadObjectFromString (
source As String,
formatterType As Type
) As Object<ObsoleteAttribute("This method is deprecated.", false)>
Public Shared Function LoadObjectFromString (
source As String,
formatterType As Type
) As Objectpublic:
[ObsoleteAttribute(L"This method is deprecated.", false)]
static Object^ LoadObjectFromString(
String^ source,
Type^ formatterType
)
public:
[ObsoleteAttribute(L"This method is deprecated.", false)]
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. You may use either a BinaryFormatter (to save the object as binary data) or a SoapFormatter (to save the object as XML text). For example, to use the SoapFormatter in C# you would type: typeof(System.Runtime.Serialization.Formatters.Soap.SoapFormatter)
Return Value
Type:
ObjectThe loaded object.
To learn more about persisting objects, see
Persistence in VisionPro