語言

IExpandProvider.ApplyExpansions 方法

定義

對指定 queryable 參數套用展開。

public:
 System::Collections::IEnumerable ^ ApplyExpansions(System::Linq::IQueryable ^ queryable, System::Collections::Generic::ICollection<System::Data::Services::ExpandSegmentCollection ^> ^ expandPaths);
public System.Collections.IEnumerable ApplyExpansions(System.Linq.IQueryable queryable, System.Collections.Generic.ICollection<System.Data.Services.ExpandSegmentCollection> expandPaths);
abstract member ApplyExpansions : System.Linq.IQueryable * System.Collections.Generic.ICollection<System.Data.Services.ExpandSegmentCollection> -> System.Collections.IEnumerable
Public Function ApplyExpansions (queryable As IQueryable, expandPaths As ICollection(Of ExpandSegmentCollection)) As IEnumerable

參數

queryable
IQueryable

IQueryable<T>要擴展的對象。

expandPaths
ICollection<ExpandSegmentCollection>

一系列 ExpandSegmentCollection 擴展路徑。

傳回

與 IEnumerable 所提供 queryable 物件類型相同且包含指定的 expandPaths物件 。

備註

該 ApplyExpansions 方法可修改 以 expandPaths 標示包含哪些擴充包。

返回 IEnumerable 者可能會實作 IExpandedResult 介面以提供可枚舉的物件給擴充;否則,擴展後的資訊預期直接存在於列舉物件中。

適用於