SPFileCollection Methods
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

SPFileCollection Methods

Windows SharePoint Services 3

The SPFileCollection type exposes the following members.

  NameDescription
Public method Add(String, SPTemplateFileType) Creates a file in the collection based on the specified URL and template file type.
Public method Add(String, []) Creates a file in the collection based on the specified URL and on a byte array that contains the file.
Public method Add(String, Stream) Creates a file in the collection based on the specified URL and on a Stream object that contains a file.
Public method Add(String, [], Boolean) Creates a file in the collection based on the specified URL and on a byte array that contains a file, overwriting any file of the same name only if overwrite is true.
Public method Add(String, [], Hashtable) 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.
Public method Add(String, Stream, Boolean) Creates a file in the collection based on the specified URL and on a Stream object that contains a file, overwriting any file of the same name only if overwrite is true.
Public method Add(String, Stream, Hashtable) Creates a file in the collection based on the specified URL, a Stream object that contains a file, and a hash table that contains metadata for the file.
Public method Add(String, [], Hashtable, Boolean) 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, overwriting any file of the same name only if overwrite is true.
Public method Add(String, Stream, Hashtable, Boolean) Creates a file in the collection based on the specified URL, a Stream object that contains a file, and a hash table that contains metadata for the file, overwriting any file of the same name only if overwrite is true.
Public method Add(String, [], Boolean, String, Boolean) Creates a file in the collection based on the specified URL, byte array that contains a file, check-in comment, and Boolean value specifying whether to check required fields, overwriting any file of the same name only if overwrite is true.
Public method Add(String, Stream, Boolean, String, Boolean) Creates a file in the collection based on the specified URL, Stream object that contains a file, check-in comment, and Boolean value specifying whether to check required fields, overwriting any file of the same name only if overwrite is true.
Public method Add(String, [], SPUser, SPUser, DateTime, DateTime) Creates a file in the collection based on the specified URL, on a byte array that contains a file, on user objects that represent the users who created and last modified the file, and on DateTime values that specify when they did so.
Public method Add(String, Stream, SPUser, SPUser, DateTime, DateTime) Creates a file in the collection based on the specified URL, on a Stream object that contains a file, on user objects that represent the users who created and last modified the file, and on DateTime values that specify when they did so.
Public method Delete Deletes the file located at the specified URL.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Retrieves the data required to serialize the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)
Top
Show:
© 2016 Microsoft