Share via


SPWorkflowTemplate.AllowDefaultContentApproval Property

Gets or sets a value that indicates whether the workflow instances based on this template can start automatically when the user attempts to approve publishing a major version of an item.

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

Syntax

'Declaration
Public Property AllowDefaultContentApproval As Boolean
    Get
    Set
'Usage
Dim instance As SPWorkflowTemplate
Dim value As Boolean

value = instance.AllowDefaultContentApproval

instance.AllowDefaultContentApproval = value
public bool AllowDefaultContentApproval { get; set; }

Property Value

Type: System.Boolean
true if the workflow instances based on this template can start automatically when the user attempts to approve publishing a major version of an item; otherwise, false.

See Also

Reference

SPWorkflowTemplate Class

SPWorkflowTemplate Members

Microsoft.SharePoint.Workflow Namespace