Export (0) Print Expand All This topic has not yet been rated -
Rate this topic  SPFileCollection class  Represents a collection
of SPFile objects.  Namespace:  Microsoft.SharePoint Assembly:
 Microsoft.SharePoint (in Microsoft.SharePoint.dll)
<SubsetCallableTypeAttribute> _
<ClientCallableTypeAttribute(Name := "FileCollection",
ServerTypeId := "{d367b17c-170b-4691-a1e3-8bccf7686ce4}",  _
CollectionIndexerMethodClientName := "GetByUrl",
CollectionChildItemType := GetType(SPFile),  _         SampleUrl
:= "{apiroot}/web/folders/getbyurl({folderrelativeurl})/files")>
_ PublicClassSPFileCollection _  Use the Files property of
either the SPWeb or SPFolder class to return the collection of
files for the site or folder. To create a new file, use one of
the Add methods of SPFileCollection.  Use an indexer to return a
single file from the collection. For example, assuming the
collection is assigned to a variable named collFiles, use
collFiles[index] in C#, or collFiles(index) in Visual Basic,
where index is either the index