ExtensionPart.InitializeAsync(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.
Provides an asynchronous way for extension parts to initialize their fields. This method is called before the instance is handed to Visual Studio.
protected virtual System.Threading.Tasks.Task InitializeAsync (System.Threading.CancellationToken cancellationToken);
abstract member InitializeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.InitializeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function InitializeAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
Cancellation token to monitor.
Returns
a Task indicating completion.