Helper.CreatedInRange Method (WorkflowContext, String, SPItemKey, DateTime, DateTime)
Checks whether a specified list item was created within a specific date range.
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 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.CreatedInRange(context, _
listId, listItem, first, second)
public static bool CreatedInRange(
WorkflowContext context,
string listId,
SPItemKey listItem,
DateTime first,
DateTime second
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
listId
Type: System.StringA string value representing the GUID of the list. This value may also be the list display name.
listItem
Type: Microsoft.SharePoint.Workflow.SPItemKeyAn integer that represents a specific list item.
first
Type: System.DateTimeA DateTime object representing the beginning of the desired date range.
second
Type: System.DateTimeA DateTime object representing the end of the desired date range.
Return Value
Type: System.Boolean
true if the list item was created within the range of dates; otherwise, false.