Export (0) Print
Expand All

SPFileCollection.Add method (String, Byte[], Hashtable, SPUser, SPUser, DateTime, DateTime, Boolean)

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

public SPFile Add(
	string urlOfFile,
	byte[] file,
	Hashtable properties,
	SPUser createdBy,
	SPUser modifiedBy,
	DateTime timeCreated,
	DateTime timeLastModified,
	bool overwrite
)

Parameters

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

Return value

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