Partilhar via


IListItemService.CreateListItem Method

Creates a new list item on the specified list.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<CorrelationInitializerAttribute> _
Function CreateListItem ( _
    id As Guid, _
    listId As Guid, _
    itemId As Integer, _
    itemProperties As Hashtable _
) As Integer
'Usage
Dim instance As IListItemService
Dim id As Guid
Dim listId As Guid
Dim itemId As Integer
Dim itemProperties As Hashtable
Dim returnValue As Integer

returnValue = instance.CreateListItem(id, _
    listId, itemId, itemProperties)
[CorrelationInitializerAttribute]
int CreateListItem(
    Guid id,
    Guid listId,
    int itemId,
    Hashtable itemProperties
)

Parameters

  • listId
    Type: System.Guid

    The ID of the list on which to create the item.

Return Value

Type: System.Int32

Remarks

This method is used by the CreateItemActivity class of the Microsoft.SharePoint.WorkflowActions namespace.

See Also

Reference

IListItemService Interface

IListItemService Members

Microsoft.SharePoint.Workflow Namespace