共用方式為


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

定義

嘗試序列化專案。

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

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

實作

適用於