IExternalSerializer.Serialize(Object, ISerializationContext, Type) 方法

定义

尝试序列化项。

public void Serialize (object item, Orleans.Serialization.ISerializationContext context, Type expectedType);
abstract member 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

反序列化程序需要的类型

适用于