다음을 통해 공유


CreateTask Class

Defines a workflow activity that is used to create a SharePoint Foundation task for a workflow, with the specified task properties.

Inheritance Hierarchy

System.Object
  System.Workflow.ComponentModel.DependencyObject
    System.Workflow.ComponentModel.Activity
      System.Workflow.Activities.CallExternalMethodActivity
        Microsoft.SharePoint.WorkflowActions.CreateTask

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
<ActivityToolboxDisplayAttribute("VSTTSharePointWorkflowTask", True)> _
<ToolboxBitmapAttribute(GetType(CreateTask), "Resources.CreateTask.bmp")> _
Public NotInheritable Class CreateTask _
    Inherits CallExternalMethodActivity
'Usage
Dim instance As CreateTask
[ActivityToolboxDisplayAttribute("VSTTSharePointWorkflowTask", true)]
[ToolboxBitmapAttribute(typeof(CreateTask), "Resources.CreateTask.bmp")]
public sealed class CreateTask : CallExternalMethodActivity

Remarks

The task is created in the task list of the workflow and follows the task behavior of that workflow. This activity implements the CreateTask method by calling ITaskService.

SharePoint Foundation includes several activities that streamline the process of creating, updating, completing, and deleting tasks associated with a workflow. You can also use event-based activities to receive notifications when tasks have been created, changed, or deleted.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CreateTask Members

Microsoft.SharePoint.WorkflowActions Namespace

Other Resources

Workflow Activities for SharePoint Foundation

How SharePoint Foundation Processes Workflow Activities

Workflow Task Forms (SharePoint Foundation)