Partilhar via


EnableWorkflowModification Class

Defines a workflow activity that is used to enable a workflow modification form, so that the modification can be listed as an available workflow modification in the Microsoft SharePoint Foundation user interface.

Inheritance Hierarchy

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

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

Syntax

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

Remarks

This activity implements the IWorkflowModificationService.EnableWorkflowModification method.

While the workflow modification is enabled, SharePoint Foundation displays the list of enabled modifications on the workflow status page. When the user selects the modification, SharePoint Foundation launches the modification form, enabling the user to modify the workflow while it is in progress. The indicated form and related completion task are made available as part of the workflow.

Placement of this activity directs where the scope of the modification should be active. When the activity that holds this activity finishes in the workflow, the workflow modification is disabled: SharePoint Foundation removes the modification name from the workflow modification page in the user interface.

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

EnableWorkflowModification Members

Microsoft.SharePoint.WorkflowActions Namespace

Other Resources

Workflow Activities for SharePoint Foundation

Workflow Modification Forms (SharePoint Foundation)