Deserializer.GetReference(ObjectId, MessagePackSerializerOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.