共用方式為


OrleansJsonSerializer.Serialize 方法

定義

多載

Serialize(Object, Type)

將 物件序列化為 JSON 字串。

Serialize(Object, ISerializationContext, Type)

將物件序列化為二進位資料流程

Serialize(Object, Type)

將 物件序列化為 JSON 字串。

public string Serialize (object item, Type expectedType);
member this.Serialize : obj * Type -> string
Public Function Serialize (item As Object, expectedType As Type) As String

參數

item
Object

要序列化的物件。

expectedType
Type

還原序列化程式應該要有的類型。

傳回

適用於

Serialize(Object, ISerializationContext, Type)

來源:
OrleansJsonSerializer.cs

將物件序列化為二進位資料流程

public void Serialize (object item, Orleans.Serialization.ISerializationContext context, Type expectedType);
abstract member Serialize : obj * Orleans.Serialization.ISerializationContext * Type -> unit
override this.Serialize : obj * Orleans.Serialization.ISerializationContext * Type -> unit
Public Sub Serialize (item As Object, context As ISerializationContext, expectedType As Type)

參數

item
Object

要序列化的物件

context
ISerializationContext

序列化的內容。

expectedType
Type

還原序列化程式應該預期的類型

實作

適用於