EntityList<TEntity>.ScopeToFolder 方法

获取EntityList<TEntity> ,其中包含所有和属于特定的文件夹带有或不带的子文件夹中的项的列表项的子集。

命名空间:  Microsoft.SharePoint.Linq
程序集:  Microsoft.SharePoint.Linq(位于 Microsoft.SharePoint.Linq.dll 中)

语法

声明
Public Function ScopeToFolder ( _
    folderUrl As String, _
    recursive As Boolean _
) As IQueryable(Of TEntity)
用法
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
)

参数

  • recursive
    类型:System.Boolean

    若要包括子文件夹 ; 在项目的truefalse以将其排除。

返回值

类型:System.Linq.IQueryable<TEntity>
IQueryable<T> 对象,该对象可以强制转换为EntityList<TEntity>

另请参阅

引用

EntityList<TEntity> 类

EntityList<TEntity> 成员

Microsoft.SharePoint.Linq 命名空间