Share via


ITaskService.DeleteTask Method

Deletes the specified workflow task.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Sub DeleteTask ( _
    taskId As Guid _
)
'Usage
Dim instance As ITaskService
Dim taskId As Guid

instance.DeleteTask(taskId)
void DeleteTask(
    Guid taskId
)

Parameters

  • taskId
    Type: System.Guid

    The ID of the workflow task to delete.

Remarks

When this method is called, the ITaskService class raises an OnTaskDeleted event.

See Also

Reference

ITaskService Interface

ITaskService Members

Microsoft.SharePoint.Workflow Namespace