共用方式為


SPWorkflowAssociation.AutoStartChange Property

True to have workflow instances based on this workflow associate start automatically when an item is changed.

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

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property AutoStartChange As Boolean
    Get
    Set
'Usage
Dim instance As SPWorkflowAssociation
Dim value As Boolean

value = instance.AutoStartChange

instance.AutoStartChange = value
[ClientCallableAttribute]
public bool AutoStartChange { get; set; }

Property Value

Type: System.Boolean
A Boolean that represents whether the workflow starts automatically when the item is changed.

See Also

Reference

SPWorkflowAssociation Class

SPWorkflowAssociation Members

Microsoft.SharePoint.Workflow Namespace

Other Resources

Workflows in SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation