IListItemByKeyService.DeleteListItem Method
Deletes the specified item from the specified list.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<CorrelationInitializerAttribute> _
Sub DeleteListItem ( _
id As Guid, _
listId As Guid, _
itemKey As SPItemKey _
)
'Usage
Dim instance As IListItemByKeyService
Dim id As Guid
Dim listId As Guid
Dim itemKey As SPItemKey
instance.DeleteListItem(id, listId, itemKey)
[CorrelationInitializerAttribute]
void DeleteListItem(
Guid id,
Guid listId,
SPItemKey itemKey
)
Parameters
id
Type: System.GuidCorrelation id of the delete operation
listId
Type: System.GuidThe ID of the list containing the item to delete.
itemKey
Type: Microsoft.SharePoint.Workflow.SPItemKeyThe SPItemKey of the item being deleted.