Helper.ModifiedBy Method (WorkflowContext, String, Int32, String)
Verifies that a specific user was the last person to modify a list item.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function ModifiedBy ( _
context As WorkflowContext, _
listId As String, _
listItem As Integer, _
name As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As Integer
Dim name As String
Dim returnValue As Boolean
returnValue = Helper.ModifiedBy(context, _
listId, listItem, name)
public static bool ModifiedBy(
WorkflowContext context,
string listId,
int listItem,
string name
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextWorkflowContext object that contains properties that are associated with the active workflow instance.
listId
Type: System.StringA string that represents the GUID of the SharePoint Foundation list identifier (ID). May also be the display name of the list.
listItem
Type: System.Int32An integer that represents the SharePoint Foundation list item in a specified list.
name
Type: System.StringA string that represents the login name of the user who must be verified.
Return Value
Type: System.Boolean
true if the login name matches the value of the Editor field; otherwise, the value is false.
Remarks
The ModifiedBy method compares the value of the Editor field of the specified list item to the name variable.