Edit

Share via


IStorageSerializer.Serialize Method

Definition

Overloads

Serialize(Object)

Serializes the given data.

Serialize(Stream, Object)

Serializes the given data to a stream.

Serialize(TextWriter, Object)

Serializes the given data to a text stream.

Serialize(Object)

Source:
IStorageSerializer.cs

Serializes the given data.

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

Parameters

data
Object

The data to be serialized.

Returns

The serialized data.

Applies to

Serialize(Stream, Object)

Source:
IStorageSerializer.cs

Serializes the given data to a stream.

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

Parameters

dataStream
Stream

The stream to serialize to.

data
Object

The data to serialize.

Returns

The stream to which data was serialized. The same as dataStream.

Applies to

Serialize(TextWriter, Object)

Source:
IStorageSerializer.cs

Serializes the given data to a text stream.

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

Parameters

writer
TextWriter

The stream to serialize the text to.

data
Object

The data to serialize.

Returns

The stream to which data was serialized. The same as writer.

Applies to