共用方式為


ClientObjectQueryableExtension.IncludeWithDefaultProperties<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 IncludeWithDefaultProperties(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.IncludeWithDefaultProperties(retrievals)
public static IQueryable<TSource> IncludeWithDefaultProperties<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-tw/library/bb384936(v=office.15)https://msdn.microsoft.com/zh-tw/library/bb383977(v=office.15)

請參閱

參照

ClientObjectQueryableExtension 類別

ClientObjectQueryableExtension 成員

Microsoft.SharePoint.Client 命名空間