ExtensionSectionMetadataModelManager<TSectionMetadata,TModel>.CreateModelAsync 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.
Create models based on registrations provided by extensions.
protected abstract System.Threading.Tasks.Task<TModel> CreateModelAsync (TSectionMetadata registration, Newtonsoft.Json.Linq.JToken blob, System.Threading.CancellationToken cancellationToken);
abstract member CreateModelAsync : 'SectionMetadata * Newtonsoft.Json.Linq.JToken * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Model (requires 'Model : null and 'Model :> Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensibilityModel)>
Protected MustOverride Function CreateModelAsync (registration As TSectionMetadata, blob As JToken, cancellationToken As CancellationToken) As Task(Of TModel)
Parameters
- registration
- TSectionMetadata
The registration to base the model on.
- blob
- Newtonsoft.Json.Linq.JToken
The json blob that was used to create the registration.
- cancellationToken
- CancellationToken
A token to signal cancellation.
Returns
Task<TModel>
The fully initialized model.