Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a task body that can be consumed by the task scheduler service.
Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function CreateTaskBody ( _
    action As VsTaskBodyCallback _
) As IVsTaskBody
public static IVsTaskBody CreateTaskBody(
    VsTaskBodyCallback action
)
public:
static IVsTaskBody^ CreateTaskBody(
    VsTaskBodyCallback^ action
)
static member CreateTaskBody : 
        action:VsTaskBodyCallback -> IVsTaskBody
public static function CreateTaskBody(
    action : VsTaskBodyCallback
) : IVsTaskBody
Parameters
- action 
 Type: Microsoft.VisualStudio.Shell.VsTaskBodyCallback- [in] Anonymous method to execute as the task body. 
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskBody
An implementation of IVsTaskBody.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.