Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Folder property of the SPQuery class gets or sets the folder within a document library from which to return items in the query.
Property Value
A Microsoft.SharePoint.SPFolder object that represents the folder.
Example
The following code example uses the Folder property to specify the subfolder from which to return items in a document library.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security