ChangeAllowedCheck Delegate

A delegate that can be used to verify whether the workflow task properties can be changed.

Namespace:  Microsoft.Office.Workflow
Assembly:  Microsoft.Office.Workflow.Tasks (in Microsoft.Office.Workflow.Tasks.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Delegate Function ChangeAllowedCheck ( _
    sender As Object, _
    taskId As Guid, _
    beforeProperties As SPWorkflowTaskProperties, _
    afterProperties As SPWorkflowTaskProperties, _
    executor As String, _
    <OutAttribute> ByRef reason As String _
) As Boolean
'Usage
Dim instance As New ChangeAllowedCheck(AddressOf HandlerMethod)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public delegate bool ChangeAllowedCheck(
    Object sender,
    Guid taskId,
    SPWorkflowTaskProperties beforeProperties,
    SPWorkflowTaskProperties afterProperties,
    string executor,
    out string reason
)

Parameters

  • sender
    Type: System.Object
    An object that represents the caller of the ChangeAllowedCheck type.
  • taskId
    Type: System.Guid
    A GUID that represents the workflow task identifier (ID).
  • executor
    Type: System.String
    The ID of the user who executed the event.
  • reason
    Type: System.String
    A string that contains the reason for the change.

Return Value

Type: System.Boolean
A Boolean value that indicates whether or not the workflow task is can be changed.

See Also

Reference

Microsoft.Office.Workflow Namespace