Export (0) Print
Expand All

SPFileCollection.Add method (String, Stream, Hashtable, SPUser, SPUser, DateTime, DateTime, String, Boolean)

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

'Declaration
Public Function Add ( _
	urlOfFile As String, _
	file As Stream, _
	properties As Hashtable, _
	createdBy As SPUser, _
	modifiedBy As SPUser, _
	timeCreated As DateTime, _
	timeLastModified As DateTime, _
	checkInComment As String, _
	overwrite As Boolean _
) As SPFile
'Usage
Dim instance As SPFileCollection
Dim urlOfFile As String
Dim file As Stream
Dim properties As Hashtable
Dim createdBy As SPUser
Dim modifiedBy As SPUser
Dim timeCreated As DateTime
Dim timeLastModified As DateTime
Dim checkInComment As String
Dim overwrite As Boolean
Dim returnValue As SPFile

returnValue = instance.Add(urlOfFile, _
	file, properties, createdBy, modifiedBy, _
	timeCreated, timeLastModified, checkInComment, _
	overwrite)

Parameters

urlOfFile
Type: System.String
file
Type: System.IO.Stream
properties
Type: System.Collections.Hashtable
createdBy
Type: Microsoft.SharePoint.SPUser
modifiedBy
Type: Microsoft.SharePoint.SPUser
timeCreated
Type: System.DateTime
timeLastModified
Type: System.DateTime
checkInComment
Type: System.String
overwrite
Type: System.Boolean

Return value

Type: Microsoft.SharePoint.SPFile
Show:
© 2015 Microsoft