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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
listId
Type: System.StringThe GUID or display name of the list.
listItem
Type: Microsoft.SharePoint.Workflow.SPItemKeyThe list item to be verified in the specified list.
first
Type: System.DateTimeThe starting date of the date range.
second
Type: System.DateTimeThe ending date of the date range.
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.