Share via


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.InheritanceDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Public Function Add ( _
    web As SPWeb, _
    schedule As DateTime, _
    gParentId As Guid, _
    nItemId As Integer, _
    fRememberWebId As Boolean, _
    gItemUniqueId 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 gItemUniqueId As Guid
Dim gBatchId As Guid
Dim nUserId As Integer
Dim returnValue As Guid

returnValue = instance.Add(web, schedule, _
    gParentId, nItemId, fRememberWebId, _
    gItemUniqueId, gBatchId, nUserId)
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public Guid Add(
    SPWeb web,
    DateTime schedule,
    Guid gParentId,
    int nItemId,
    bool fRememberWebId,
    Guid gItemUniqueId,
    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.

  • 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