SPFolder.Files Property

Gets the collection of all files contained in the folder.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
Public ReadOnly Property Files As SPFileCollection
    Get
'Usage
Dim instance As SPFolder
Dim value As SPFileCollection

value = instance.Files
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public SPFileCollection Files { get; }

Property Value

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

See Also

Reference

SPFolder Class

SPFolder Members

Microsoft.SharePoint Namespace