Partilhar via


WorkflowContext.ItemId Property

Gets the identifier of the list item on which the workflow instance is running.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public ReadOnly Property ItemId As Integer
    Get
'Usage
Dim instance As WorkflowContext
Dim value As Integer

value = instance.ItemId
public int ItemId { get; }

Property Value

Type: System.Int32
The identifier of the list item.

Remarks

If the workflow is a site workflow, the value is -1.

See Also

Reference

WorkflowContext Class

WorkflowContext Members

Microsoft.SharePoint.WorkflowActions Namespace