IListItemService.UpdateDocument method
Updates the specified document.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<CorrelationInitializerAttribute> _
Sub UpdateDocument ( _
id As Guid, _
listId As Guid, _
itemId As Integer, _
itemProperties As Hashtable, _
overwriteFromTemplate As Boolean, _
fileContents As Byte() _
)
'Usage
Dim instance As IListItemService
Dim id As Guid
Dim listId As Guid
Dim itemId As Integer
Dim itemProperties As Hashtable
Dim overwriteFromTemplate As Boolean
Dim fileContents As Byte()
instance.UpdateDocument(id, listId, itemId, _
itemProperties, overwriteFromTemplate, _
fileContents)
[CorrelationInitializerAttribute]
void UpdateDocument(
Guid id,
Guid listId,
int itemId,
Hashtable itemProperties,
bool overwriteFromTemplate,
byte[] fileContents
)
Parameters
id
Type: System.GuidReserved for internal use.
listId
Type: System.GuidThe ID of the list on which the document resides.
itemId
Type: System.Int32The item ID of the document.
itemProperties
Type: System.Collections.HashtableA hash table containing the updated item properties for the document.
- overwriteFromTemplate
Type: System.Boolean
fileContents
Type: []The updated contents of the document.