Export (0) Print
Expand All

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

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

public SPFile Add(
	string urlOfFile,
	Stream file,
	SPUser createdBy,
	SPUser modifiedBy,
	DateTime timeCreated,
	DateTime timeLastModified
)

Parameters

urlOfFile
Type: System.String
file
Type: System.IO.Stream
createdBy
Type: Microsoft.SharePoint.SPUser
modifiedBy
Type: Microsoft.SharePoint.SPUser
timeCreated
Type: System.DateTime
timeLastModified
Type: System.DateTime

Return value

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