將展開套用到指定的 queryable 參數。
命名空間: System.Data.Services
組件: Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)
語法
'宣告
Function ApplyExpansions ( _
queryable As IQueryable, _
expandPaths As ICollection(Of ExpandSegmentCollection) _
) As IEnumerable
'用途
Dim instance As IExpandProvider
Dim queryable As IQueryable
Dim expandPaths As ICollection(Of ExpandSegmentCollection)
Dim returnValue As IEnumerable
returnValue = instance.ApplyExpansions(queryable, _
expandPaths)
IEnumerable ApplyExpansions(
IQueryable queryable,
ICollection<ExpandSegmentCollection> expandPaths
)
IEnumerable^ ApplyExpansions(
IQueryable^ queryable,
ICollection<ExpandSegmentCollection^>^ expandPaths
)
abstract ApplyExpansions :
queryable:IQueryable *
expandPaths:ICollection<ExpandSegmentCollection> -> IEnumerable
function ApplyExpansions(
queryable : IQueryable,
expandPaths : ICollection<ExpandSegmentCollection>
) : IEnumerable
參數
- queryable
型別:System.Linq.IQueryable
要展開的 IQueryable<T> 物件。
- expandPaths
型別:System.Collections.Generic.ICollection<ExpandSegmentCollection>
要展開的 ExpandSegmentCollection 路徑集合。
傳回值
型別:System.Collections.IEnumerable
IEnumerable 物件,其型別與所提供的 queryable 物件 (包含指定的 expandPaths) 相同。
備註
ApplyExpansions 方法可能會修改 expandPaths,以指示包含哪些展開。
傳回的 IEnumerable 可以實作 IExpandedResult 介面,以提供展開的可列舉物件;否則,展開資訊必須直接在列舉物件中找到。