Partilhar via


Helper.ModifiedBy Method (WorkflowContext, String, SPItemKey, String)

Verifies whether the specified user was the last person to modify the specified 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 SPItemKey, _
    name As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As SPItemKey
Dim name As String
Dim returnValue As Boolean

returnValue = Helper.ModifiedBy(context, _
    listId, listItem, name)
public static bool ModifiedBy(
    WorkflowContext context,
    string listId,
    SPItemKey listItem,
    string name
)

Parameters

  • listId
    Type: System.String

    The GUID or display name of the list.

  • name
    Type: System.String

    The login name of the user to be verified.

Return Value

Type: System.Boolean
true if the specified user was the last person to modify the specified list item; otherwise, false.

Remarks

This method compares the value of the Editor field for the list item to name. The comparison is case-sensitive.

See Also

Reference

Helper Class

Helper Members

ModifiedBy Overload

Microsoft.SharePoint.WorkflowActions Namespace