BulkWorkflowWorkItem.Add Method

Adds a work item to the list of work items that are processed by the bulk workflow.

Namespace:  Microsoft.Office.Workflow
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Function Add ( _
    web As SPWeb, _
    schedule As DateTime, _
    gParentId As Guid, _
    nItemId As Integer, _
    fRememberWebId As Boolean, _
    gItemGuid As Guid, _
    gBatchId As Guid, _
    nUserId As Integer _
) As Guid
'Usage
Dim instance As BulkWorkflowWorkItem
Dim web As SPWeb
Dim schedule As DateTime
Dim gParentId As Guid
Dim nItemId As Integer
Dim fRememberWebId As Boolean
Dim gItemGuid As Guid
Dim gBatchId As Guid
Dim nUserId As Integer
Dim returnValue As Guid

returnValue = instance.Add(web, schedule, _
    gParentId, nItemId, fRememberWebId, _
    gItemGuid, gBatchId, nUserId)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public Guid Add(
    SPWeb web,
    DateTime schedule,
    Guid gParentId,
    int nItemId,
    bool fRememberWebId,
    Guid gItemGuid,
    Guid gBatchId,
    int nUserId
)

Parameters

  • schedule
    Type: System.DateTime

    A DateTime object that contains the time that the work item is scheduled to execute.

  • gParentId
    Type: System.Guid

    A GUID that represents the workflow's parent container.

  • nItemId
    Type: System.Int32

    An integer that represents the work item that is added for bulk work processing.

  • fRememberWebId
    Type: System.Boolean

    A Boolean value that indicates that the Web identifier (ID) must be inserted into the properties of the work item while the collection is being processed by the bulk workflow processing.

  • gItemGuid
    Type: System.Guid

    A GUID that represents the workflow work item.

  • gBatchId
    Type: System.Guid

    A GUID that represents the bulk workflow batch.

  • nUserId
    Type: System.Int32

    An integer that represents the user who owns the workflow item.

Return Value

Type: System.Guid
A GUID that represents the work item added to the collection of work items in the bulk workflow.

See Also

Reference

BulkWorkflowWorkItem Class

BulkWorkflowWorkItem Members

Microsoft.Office.Workflow Namespace