Sdílet prostřednictvím


IExpandProvider.ApplyExpansions Metoda

Definice

Použije rozšíření na zadaný queryable parametr.

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

Parametry

queryable
IQueryable

Objekt IQueryable<T> , který chcete rozbalit.

expandPaths
ICollection<ExpandSegmentCollection>

Kolekce ExpandSegmentCollection cest k rozbalení.

Návraty

Objekt IEnumerable stejného typu jako zadaný queryable objekt, který obsahuje zadaný expandPathsobjekt .

Poznámky

Metoda ApplyExpansions může upravit tak, aby označí expandPaths , která rozšíření jsou zahrnuta.

Vrácený IEnumerable objekt může implementovat IExpandedResult rozhraní pro poskytování výčtu objektů pro rozšíření; v opačném případě se očekává, že rozšířené informace budou nalezeny přímo ve výčtu objektů.

Platí pro