Compartilhar via


Deserializer.GetReference(ObjectId, MessagePackSerializerOptions) Method

Definition

This method is invoked by DeserializeWithTypeInfo(MessagePackReader, MessagePackSerializerOptions) to retrieve the uniquely identifiable object id.

protected abstract object GetReference (Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId id, MessagePack.MessagePackSerializerOptions options);
abstract member GetReference : Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId * MessagePack.MessagePackSerializerOptions -> obj
Protected MustOverride Function GetReference (id As ObjectId, options As MessagePackSerializerOptions) As Object

Parameters

id
ObjectId

The identifier of the uniquely identifable object to return.

options
MessagePack.MessagePackSerializerOptions

MessagePack options being used for deserialization.

Returns

The uniquely identifiable object.

Remarks

If the object cannot be found, the implementer can either throw an exception or return a placeholder.

Applies to