共用方式為


ITaskService.CompleteTask Method

Marks the specified workflow task as complete.

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

Syntax

'Declaration
Sub CompleteTask ( _
    taskId As Guid, _
    taskOutcome As String _
)
'Usage
Dim instance As ITaskService
Dim taskId As Guid
Dim taskOutcome As String

instance.CompleteTask(taskId, taskOutcome)
void CompleteTask(
    Guid taskId,
    string taskOutcome
)

Parameters

  • taskId
    Type: System.Guid

    The ID of the task to be marked as complete.

  • taskOutcome
    Type: System.String

    The outcome of the completed task.

See Also

Reference

ITaskService Interface

ITaskService Members

Microsoft.SharePoint.Workflow Namespace