Share via


ITaskHandler Interface

Definition

Interface representing the objects tracked by the IVsTaskStatusCenterService. These objects are given back to callers to interact with the IVsTaskStatusCenterService with regards to their registered task.

public interface class ITaskHandler
[System.Runtime.InteropServices.Guid("C9AF130E-73DB-461B-A011-2AC4E99F2FFD")]
public interface ITaskHandler
[<System.Runtime.InteropServices.Guid("C9AF130E-73DB-461B-A011-2AC4E99F2FFD")>]
type ITaskHandler = interface
Public Interface ITaskHandler
Derived
Attributes

Properties

Options

Gets a copy of the options configured at initialization for an ITaskHandler behaviour and data.

Progress

Gets the IProgress<T> from this. Can be used to update the behaviour and state of this via Report(T).

UserCancellation

Gets the token that indicates whether the user has requested cancellation.

Methods

RegisterTask(Task)

Registers task with the IVsTaskStatusCenterService that the caller wants to have tracked. Task will be displayed in the IVsTaskStatusCenterService UI.

Applies to