SPFileCollection members
Represents a collection of SPFile objects.
The SPFileCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | Gets the number of files in the collection. (Overrides SPBaseCollection.Count.) | |
Folder | Gets the parent folder of the collection. | |
Item[Int32] | Gets the file object at the specified index in the collection. In Microsoft Visual C#, this property is an indexer for the SPFileCollection class. | |
Item[String] | Gets the file object with the specified URL from the collection. In Microsoft Visual C#, this property is an indexer for the SPFileCollection class. | |
Web | Gets the site to which the collection belongs. |
Top
Methods
Name | Description | |
---|---|---|
Add(String, SPTemplateFileType) | Creates a file in the collection using the specified URL and template file type. | |
Add(String, []) | Creates a file in the collection using the specified URL and a byte array that contains the file. | |
Add(String, Stream) | Creates a file in the collection using the specified URL and a stream that contains the contents of a file. | |
Add(String, [], SPFileCollectionAddParameters) | Creates a file in the collection using the specified URL, a byte array that contains the contents of a file, and an SPFileCollectionAddParameters object. | |
Add(String, [], Boolean) | Creates a file in the collection using the specified URL, a byte array that contains the contents of a file, and a Boolean value that specifies whether to overwrite any file that has the same name. | |
Add(String, [], Hashtable) | Creates a file in the collection using the specified URL, a byte array that contains the contents of a file, and a hash table that contains metadata for the file. | |
Add(String, Stream, SPFileCollectionAddParameters) | Creates a file in the collection using the specified URL, a stream that contains the contents of a file, and an SPFileCollectionAddParameters object. | |
Add(String, Stream, Boolean) | Creates a file in the collection using the specified URL, a stream that contains the contents of a file, and a Boolean value that specifies whether to overwrite any file that has the same name. | |
Add(String, Stream, Hashtable) | Creates a file in the collection using the specified URL, a stream that contains the contents of a file, and a hash table that contains metadata for the file. | |
Add(String, [], Hashtable, Boolean) | Creates a file in the collection using the specified URL, a byte array that contains the contents of a file, a hash table that contains metadata for the file, and a Boolean value that specifies whether to overwrite any file that has the same name. | |
Add(String, Stream, Hashtable, Boolean) | Creates a file in the collection using the specified URL, a stream that contains the contents of a file, a hash table that contains metadata for the file, and a Boolean value that specifies whether to overwrite any file that has the same name. | |
Add(String, [], Boolean, String, Boolean) | Creates a file in the collection using the specified URL, a byte array that contains the contents of a file, a Boolean value that specifies whether to overwrite any file that has the same name, a check-in comment, and a Boolean value that specifies whether to check required fields. | |
Add(String, Stream, Boolean, String, Boolean) | Creates a file in the collection using the specified URL, a stream that contains the contents of a file, a Boolean value that specifies whether to overwrite any file that has the same name, a check-in comment, and a Boolean value that specifies whether to check required fields. | |
Add(String, Stream, Hashtable, Boolean, 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. | |
Add(String, [], SPUser, SPUser, DateTime, DateTime) | Creates a file in the collection using the specified URL, a byte array that contains the contents of a file, user objects that represent the users who created and last modified the file, and DateTime values that specify when they did so. | |
Add(String, Stream, SPUser, SPUser, DateTime, DateTime) | Creates a file in the collection using the specified URL, a stream that contains the contents of a file, user objects that represent the users who created and last modified the file, and DateTime values that specify when they did so. | |
Add(String, Stream, Boolean, Boolean, Stream, String) | Creates a file in the collection using the specified URL, a stream that contains the contents of a file, a Boolean value that specifies whether to overwrite any file that has the same name, a Boolean value that specifies whether to check required fields, a stream that contains file format metadata, and an output variable to receive an ETag. | |
Add(String, [], Hashtable, SPUser, SPUser, DateTime, DateTime, Boolean) | Creates a file in the collection using the specified URL, a byte array that contains the contents of a file, a hash table that contains metadata for the file, user objects that represent the users who created and last modified the file, DateTime values that specify when they did so, and a Boolean value that specifies whether to overwrite any file that has the same name. | |
Add(String, Stream, Hashtable, SPUser, SPUser, DateTime, DateTime, String, Boolean) | Creates a file in the collection using the specified URL, a stream that contains the contents of a file, a hash table that contains metadata for the file, user objects that represent the users who created and last modified the file, DateTime values that specify when they did so, a check-in comment, and a Boolean value that specifies whether to overwrite any file that has the same name. | |
Add(String, Stream, Hashtable, SPUser, SPUser, DateTime, DateTime, String, Boolean, Boolean) | Creates a file in the collection based on the specified URL, on a Stream object that contains a file, a Hashtable object that contains metadata for the file, on SPUser objects that represent the users who created and last modified the file, and on DateTime values that specify when they did so. | |
Delete | Deletes the file located at the specified URL. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
GetTypedEnumerator<T> | Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Explicit interface implementations
Name | Description | |
---|---|---|
ICollection.CopyTo | Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.) | |
ICollection.IsSynchronized | Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.) | |
ICollection.SyncRoot | Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.) |
Top