IListItemService.CreateDocument Method
Create a new document on the specified list.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<CorrelationInitializerAttribute> _
Function CreateDocument ( _
id As Guid, _
listId As Guid, _
itemId As Integer, _
itemProperties As Hashtable, _
fileContents As Byte() _
) As Integer
'Usage
Dim instance As IListItemService
Dim id As Guid
Dim listId As Guid
Dim itemId As Integer
Dim itemProperties As Hashtable
Dim fileContents As Byte()
Dim returnValue As Integer
returnValue = instance.CreateDocument(id, _
listId, itemId, itemProperties, fileContents)
[CorrelationInitializerAttribute]
int CreateDocument(
Guid id,
Guid listId,
int itemId,
Hashtable itemProperties,
byte[] fileContents
)
Parameters
id
Type: System.GuidReserved for internal use.
listId
Type: System.GuidThe ID of the list on which to create the document.
itemId
Type: System.Int32The item ID of the document.
itemProperties
Type: System.Collections.HashtableA hash table containing the item properties for the document.
fileContents
Type: []The contents of the new document.
Return Value
Type: System.Int32