IObjectSerializer.Serialize<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Serialize an object into a string. It is recommended to use strings as the final format for objects if you plan to use the SaveFileAsync<T>(String, T) method.
public string Serialize<T> (T value);
public object Serialize<T> (T value);
abstract member Serialize : 'T -> string
abstract member Serialize : 'T -> obj
Public Function Serialize(Of T) (value As T) As String
Public Function Serialize(Of T) (value As T) As Object
Type Parameters
- T
The type of the object to serialize.
Parameters
- value
- T
The object to serialize.
Returns
The serialized object.