VsTaskLibraryHelper.CreateTaskBody Method

Definition

Overloads

CreateTaskBody(VsTaskBodyCallback)

Creates a task body that can be consumed by task scheduler service.

CreateTaskBody(Action)

Creates a task body that can be consumed by task scheduler service.

CreateTaskBody(Func<Object>)

Creates a task body that can be consumed by task scheduler service.

CreateTaskBody<T>(Action<T>)

Creates a task body that can be consumed by task scheduler service.

CreateTaskBody<T>(Func<T,Object>)

Creates a task body that can be consumed by task scheduler service.

CreateTaskBody(VsTaskBodyCallback)

Creates a task body that can be consumed by task scheduler service.

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ CreateTaskBody(Microsoft::VisualStudio::Shell::VsTaskBodyCallback ^ action);
public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ CreateTaskBody(Microsoft::VisualStudio::Shell::VsTaskBodyCallback ^ action);
public static Microsoft.VisualStudio.Shell.Interop.IVsTaskBody CreateTaskBody (Microsoft.VisualStudio.Shell.VsTaskBodyCallback action);
static member CreateTaskBody : Microsoft.VisualStudio.Shell.VsTaskBodyCallback -> Microsoft.VisualStudio.Shell.Interop.IVsTaskBody
Public Function CreateTaskBody (action As VsTaskBodyCallback) As IVsTaskBody

Parameters

action
VsTaskBodyCallback

Anonymous method to execute as the task body.

Returns

an implementation of IVsTaskBody.

Applies to

CreateTaskBody(Action)

Creates a task body that can be consumed by task scheduler service.

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ CreateTaskBody(Action ^ action);
public static Microsoft.VisualStudio.Shell.Interop.IVsTaskBody CreateTaskBody (Action action);
static member CreateTaskBody : Action -> Microsoft.VisualStudio.Shell.Interop.IVsTaskBody
Public Function CreateTaskBody (action As Action) As IVsTaskBody

Parameters

action
Action

Anonymous method to execute as the task body.

Returns

an implementation of IVsTaskBody.

Applies to

CreateTaskBody(Func<Object>)

Creates a task body that can be consumed by task scheduler service.

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ CreateTaskBody(Func<System::Object ^> ^ action);
public static Microsoft.VisualStudio.Shell.Interop.IVsTaskBody CreateTaskBody (Func<object> action);
static member CreateTaskBody : Func<obj> -> Microsoft.VisualStudio.Shell.Interop.IVsTaskBody
Public Function CreateTaskBody (action As Func(Of Object)) As IVsTaskBody

Parameters

action
Func<Object>

Anonymous method to execute as the task body.

Returns

an implementation of IVsTaskBody.

Applies to

CreateTaskBody<T>(Action<T>)

Creates a task body that can be consumed by task scheduler service.

public:
generic <typename T>
 static Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ CreateTaskBody(Action<T> ^ action);
public static Microsoft.VisualStudio.Shell.Interop.IVsTaskBody CreateTaskBody<T> (Action<T> action);
static member CreateTaskBody : Action<'T> -> Microsoft.VisualStudio.Shell.Interop.IVsTaskBody
Public Function CreateTaskBody(Of T) (action As Action(Of T)) As IVsTaskBody

Type Parameters

T

The type of object to create.

Parameters

action
Action<T>

Anonymous method to execute as the task body.

Returns

an implementation of IVsTaskBody.

Applies to

CreateTaskBody<T>(Func<T,Object>)

Creates a task body that can be consumed by task scheduler service.

public:
generic <typename T>
 static Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ CreateTaskBody(Func<T, System::Object ^> ^ action);
public static Microsoft.VisualStudio.Shell.Interop.IVsTaskBody CreateTaskBody<T> (Func<T,object> action);
static member CreateTaskBody : Func<'T, obj> -> Microsoft.VisualStudio.Shell.Interop.IVsTaskBody
Public Function CreateTaskBody(Of T) (action As Func(Of T, Object)) As IVsTaskBody

Type Parameters

T

The type of object to create.

Parameters

action
Func<T,Object>

Anonymous method to execute as the task body.

Returns

an implementation of IVsTaskBody.

Applies to