IStorageSerializer.Serialize 方法

定义

重载

Serialize(Object)

序列化给定的数据。

Serialize(Stream, Object)

将给定数据序列化为流。

Serialize(TextWriter, Object)

将给定数据序列化为文本流。

Serialize(Object)

Source:
IStorageSerializer.cs

序列化给定的数据。

public object Serialize (object data);
abstract member Serialize : obj -> obj
Public Function Serialize (data As Object) As Object

参数

data
Object

要序列化的数据。

返回

序列化数据。

适用于

Serialize(Stream, Object)

Source:
IStorageSerializer.cs

将给定数据序列化为流。

public object Serialize (System.IO.Stream dataStream, object data);
abstract member Serialize : System.IO.Stream * obj -> obj
Public Function Serialize (dataStream As Stream, data As Object) As Object

参数

dataStream
Stream

要序列化到的流。

data
Object

要序列化的数据。

返回

数据序列化到的流。 与 dataStream.

适用于

Serialize(TextWriter, Object)

Source:
IStorageSerializer.cs

将给定数据序列化为文本流。

public object Serialize (System.IO.TextWriter writer, object data);
abstract member Serialize : System.IO.TextWriter * obj -> obj
Public Function Serialize (writer As TextWriter, data As Object) As Object

参数

writer
TextWriter

要序列化文本到的流。

data
Object

要序列化的数据。

返回

数据序列化到的流。 与 writer.

适用于