ExtensionSectionMetadataModelManager<TSectionMetadata,TModel>.OnModelsRemovedAsync 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.
A callback that is invoked when models are to be unloaded.
protected abstract System.Threading.Tasks.Task OnModelsRemovedAsync (System.Collections.Generic.IReadOnlyCollection<TModel> removed, System.Threading.CancellationToken cancellationToken);
abstract member OnModelsRemovedAsync : System.Collections.Generic.IReadOnlyCollection<'Model (requires 'Model : null and 'Model :> Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensibilityModel)> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected MustOverride Function OnModelsRemovedAsync (removed As IReadOnlyCollection(Of TModel), cancellationToken As CancellationToken) As Task
Parameters
- removed
- IReadOnlyCollection<TModel>
The set of registrations that have been removed.
- cancellationToken
- CancellationToken
A token to signal cancellation.
Returns
A task tracking the work.