共用方式為


ITaskHandler.RegisterTask(Task) Method

Definition

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

public:
 void RegisterTask(System::Threading::Tasks::Task ^ task);
public void RegisterTask (System.Threading.Tasks.Task task);
abstract member RegisterTask : System.Threading.Tasks.Task -> unit
Public Sub RegisterTask (task As Task)

Parameters

task
Task

The Task that the caller wants to have tracked via the IVsTaskStatusCenterService.

Applies to