Share via


EntityList<TEntity>.ScopeToFolder method

Gets the subset of the EntityList<TEntity> that consists of all and only the list items that belong to a particular folder, with or without the items in subfolders.

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

Syntax

'Declaration
Public Function ScopeToFolder ( _
    folderUrl As String, _
    recursive As Boolean _
) As IQueryable(Of TEntity)
'Usage
Dim instance As EntityList
Dim folderUrl As String
Dim recursive As Boolean
Dim returnValue As IQueryable(Of TEntity)

returnValue = instance.ScopeToFolder(folderUrl, _
    recursive)
public IQueryable<TEntity> ScopeToFolder(
    string folderUrl,
    bool recursive
)

Parameters

  • recursive
    Type: System.Boolean

    true to include items in subfolders; false to exclude them.

Return value

Type: System.Linq.IQueryable<TEntity>
An IQueryable<T> object that can be cast to EntityList<TEntity>.

See also

Reference

EntityList<TEntity> class

EntityList<TEntity> members

Microsoft.SharePoint.Linq namespace