ClientObjectQueryableExtension.Include<TSource> 方法

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight.Runtime(位于 Microsoft.SharePoint.Client.Silverlight.Runtime.dll 中);  Microsoft.SharePoint.Client.Phone.Runtime(位于 Microsoft.SharePoint.Client.Phone.Runtime.dll 中)  Microsoft.SharePoint.Client.Runtime(位于 Microsoft.SharePoint.Client.Runtime.dll 中)

语法

声明
<ExtensionAttribute> _
Public Shared Function Include(Of TSource As ClientObject) ( _
    clientObjects As IQueryable(Of TSource), _
    ParamArray retrievals As Expression(Of Func(Of TSource, Object))() _
) As IQueryable(Of TSource)
用法
Dim clientObjects As IQueryable(Of TSource)
Dim retrievals As Expression(Of Func(Of TSource, Object))()
Dim returnValue As IQueryable(Of TSource)

returnValue = clientObjects.Include(retrievals)
public static IQueryable<TSource> Include<TSource>(
    this IQueryable<TSource> clientObjects,
    params Expression<Func<TSource, Object>>[] retrievals
)
where TSource : ClientObject

类型参数

  • TSource

参数

  • retrievals
    类型:[]

返回值

类型:System.Linq.IQueryable<TSource>

使用注释

在 Visual Basic 和 C# 中,您可以在类型为 IQueryable<TSource> 的任何对象上调用此方法作为实例方法。当您使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅 https://msdn.microsoft.com/zh-cn/library/bb384936(v=office.15)https://msdn.microsoft.com/zh-cn/library/bb383977(v=office.15)

另请参阅

引用

ClientObjectQueryableExtension 类

ClientObjectQueryableExtension 成员

Microsoft.SharePoint.Client 命名空间