ExtensionSectionMetadataManager.TryDeserializeAsync 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.
Attempt to deserialize the registration from the given json blob.
protected virtual System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionSectionMetadata?> TryDeserializeAsync (Newtonsoft.Json.Linq.JToken blob, Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken extensionIdentificationToken, System.Threading.CancellationToken cancellationToken);
abstract member TryDeserializeAsync : Newtonsoft.Json.Linq.JToken * Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionSectionMetadata>
override this.TryDeserializeAsync : Newtonsoft.Json.Linq.JToken * Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionSectionMetadata>
Protected Overridable Function TryDeserializeAsync (blob As JToken, extensionIdentificationToken As ExtensionIdentificationToken, cancellationToken As CancellationToken) As Task(Of IExtensionSectionMetadata)
Parameters
- blob
- Newtonsoft.Json.Linq.JToken
The json token containing the registration metadata.
- extensionIdentificationToken
- ExtensionIdentificationToken
Unique identifier of the extension that owns the registration.
- cancellationToken
- CancellationToken
A token to signal cancellation.
Returns
The deserialized registration.