SPUserCodeWorkflowContext.AllowDefaultContentApproval property
Gets or sets a value that indicates whether the workflow is started when the user approves the publishing of a major version of a list item.
Namespace: Microsoft.SharePoint.UserCode
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property AllowDefaultContentApproval As Boolean
Get
Set
'Usage
Dim instance As SPUserCodeWorkflowContext
Dim value As Boolean
value = instance.AllowDefaultContentApproval
instance.AllowDefaultContentApproval = value
public bool AllowDefaultContentApproval { get; set; }
Property value
Type: System.Boolean
true if the workflow is started when the user approves the publishing of a major version of a list item; otherwise, false.
See also
Reference
SPUserCodeWorkflowContext class