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
)
参数
folderUrl
类型:System.String文件夹的 URL。
recursive
类型:System.Boolean若要包括子文件夹 ; 在项目的truefalse以将其排除。
返回值
类型:System.Linq.IQueryable<TEntity>
IQueryable<T> 对象,该对象可以强制转换为EntityList<TEntity>。