AsyncPackage.OnAfterPackageLoadedAsync(CancellationToken) 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.
When overridden by a derived type, may initiate operations with side effects that are not strictly a part of package load that would belong to InitializeAsync(CancellationToken, IProgress<ServiceProgressData>) but that should happen soon after package load (e.g. updating command status).
protected:
virtual System::Threading::Tasks::Task ^ OnAfterPackageLoadedAsync(System::Threading::CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.Task OnAfterPackageLoadedAsync (System.Threading.CancellationToken cancellationToken);
abstract member OnAfterPackageLoadedAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnAfterPackageLoadedAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnAfterPackageLoadedAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
The package's DisposalToken.
Returns
A task that indicates completion of the extra work.
Remarks
This method is invoked on a threadpool thread.
The base OnAfterPackageLoadedAsync(CancellationToken) method has an empty implementation, so direct derivations of AsyncPackage needn't call the base method as part of their override method.