Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Files property
Collapse the table of content
Expand the table of content

SPWeb.Files property

Gets the collection of all files in the root directory of the website.

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

public SPFileCollection Files { get; }

Property value

Type: Microsoft.SharePoint.SPFileCollection
An SPFileCollection object that represents the files.

The user must have the Browse Directories right to run code that uses the Files property.

Show:
© 2015 Microsoft