Delen via


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

  • listId
    Type: System.String

    A string value representing the GUID of the list. This value may also be the list display name.

Return Value

Type: System.Boolean
true if the list item was created within the range of dates; otherwise, false.

See Also

Reference

Helper Class

Helper Members

CreatedInRange Overload

Microsoft.SharePoint.WorkflowActions Namespace