Partilhar via


Helper.ModifiedInRange Method (WorkflowContext, String, SPItemKey, DateTime, DateTime)

Verifies whether the specified list item was modified within the specified date range.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public Shared Function ModifiedInRange ( _
    context As WorkflowContext, _
    listId As String, _
    listItem As SPItemKey, _
    first As DateTime, _
    second As DateTime _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As SPItemKey
Dim first As DateTime
Dim second As DateTime
Dim returnValue As Boolean

returnValue = Helper.ModifiedInRange(context, _
    listId, listItem, first, second)
public static bool ModifiedInRange(
    WorkflowContext context,
    string listId,
    SPItemKey listItem,
    DateTime first,
    DateTime second
)

Parameters

  • listId
    Type: System.String

    The GUID or display name of the list.

Return Value

Type: System.Boolean
true if the specified list item was modified within the specified date range; otherwise, false.

Remarks

This method retrieves the value of the Modified field for the specified list item in the specified list and then compares the result with the specified beginning date and ending date.

See Also

Reference

Helper Class

Helper Members

ModifiedInRange Overload

Microsoft.SharePoint.WorkflowActions Namespace