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)

Syntax

'Declaration
Public ReadOnly Property Files As SPFileCollection
    Get
'Usage
Dim instance As SPWeb
Dim value As SPFileCollection

value = instance.Files
public SPFileCollection Files { get; }

Property value

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

Remarks

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

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace