Helper.CreatedInRange Method (WorkflowContext, String, Int32, DateTime, DateTime)
Retrieves a list of SharePoint Foundation list items that are created within a range of specified dates.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function CreatedInRange ( _
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.CreatedInRange(context, _
listId, listItem, first, second)
public static bool CreatedInRange(
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 SharePoint Foundation list item provided was created within the specified date range; otherwise, the value is false.