다음을 통해 공유


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