VsTaskLibraryHelper::CreateTaskBody<T> Method (Func<T, Object^>^)
Visual Studio 2015
Creates a task body that can be consumed by the task scheduler service.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: generic<typename T> static IVsTaskBody^ CreateTaskBody( Func<T, Object^>^ action )
Parameters
- action
-
Type:
System::Func<T, Object^>^
[in] Anonymous method to execute as the task body.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsTaskBody^An implementation of IVsTaskBody.
Type Parameters
- T
The type of object to create.
Show: