Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Add Method (String, Byte[], Hashtable)

SPFileCollection.Add Method (String, Byte[], Hashtable)

Windows SharePoint Services 3

Creates a file in the collection based on the specified URL, a byte array that contains a file, and a hash table that contains metadata for the file.

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

public SPFile Add(
	string urlOfFile,
	byte[] file,
	Hashtable properties
)

Parameters

urlOfFile
Type: System.String
A string that specifies the URL for the file.
file
Type: []
A byte array containing the file.
properties
Type: System.Collections.Hashtable
A System.Collections.Hashtable object containing metadata for the file.

Return Value

Type: Microsoft.SharePoint.SPFile
An SPFile object that represents the file.

Community Additions

ADD
Show:
© 2015 Microsoft