Helper.ModifiedInRange Method (WorkflowContext, String, Int32, DateTime, DateTime)
Verifies whether a SharePoint Foundation list item has been modified within a 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 Integer, _
first As DateTime, _
second As DateTime _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As Integer
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,
int listItem,
DateTime first,
DateTime second
)
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.
first
Type: System.DateTimeA DateTime object that specifies the starting date of the date range.
second
Type: System.DateTimeA DateTime object that specifies the ending date of the date range.
Return Value
Type: System.Boolean
true if the modified date falls within the specified date range; otherwise, the value is false.