Share via


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

  • listId
    Type: System.String

    A string that represents the GUID of the SharePoint Foundation list identifier (ID). May also be the display name of the list.

  • listItem
    Type: System.Int32

    An integer that represents the SharePoint Foundation list item in a specified list.

  • first
    Type: System.DateTime

    A DateTime object that specifies the starting date of the date range.

  • second
    Type: System.DateTime

    A 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.

See also

Reference

Helper class

Helper members

CreatedInRange overload

Microsoft.SharePoint.WorkflowActions namespace