Saves an object to a string in a specified format, with option bits that cause fields to be selectively persisted.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.0.0.0
[ObsoleteAttribute("This method is deprecated.", false)]
public static string SaveObjectToString(
Object obj,
Type formatterType,
CogSerializationOptionsConstants optionBits,
StreamingContextStates contextStates
)[ObsoleteAttribute("This method is deprecated.", false)]
public static string SaveObjectToString(
Object obj,
Type formatterType,
CogSerializationOptionsConstants optionBits,
StreamingContextStates contextStates
)<ObsoleteAttribute("This method is deprecated.", false)>
Public Shared Function SaveObjectToString (
obj As Object,
formatterType As Type,
optionBits As CogSerializationOptionsConstants,
contextStates As StreamingContextStates
) As String<ObsoleteAttribute("This method is deprecated.", false)>
Public Shared Function SaveObjectToString (
obj As Object,
formatterType As Type,
optionBits As CogSerializationOptionsConstants,
contextStates As StreamingContextStates
) As Stringpublic:
[ObsoleteAttribute(L"This method is deprecated.", false)]
static String^ SaveObjectToString(
Object^ obj,
Type^ formatterType,
CogSerializationOptionsConstants optionBits,
StreamingContextStates contextStates
)
public:
[ObsoleteAttribute(L"This method is deprecated.", false)]
static String^ SaveObjectToString(
Object^ obj,
Type^ formatterType,
CogSerializationOptionsConstants optionBits,
StreamingContextStates contextStates
)
Return Value
Type:
StringThe string containing the saved object.
To learn more about persisting objects, see
Persistence in VisionPro