IExpandProvider.ApplyExpansions Method

Definition

Applies expansions to the specified queryable parameter.

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

Parameters

queryable
IQueryable

The IQueryable<T> object to expand.

expandPaths
ICollection<ExpandSegmentCollection>

A collection of ExpandSegmentCollection paths to expand.

Returns

An IEnumerable object of the same type as the supplied queryable object that includes the specified expandPaths.

Remarks

The ApplyExpansions method may modify the expandPaths to indicate which expansions are included.

The returned IEnumerable may implement the IExpandedResult interface to provide enumerable objects for the expansions; otherwise, the expanded information is expected to be found directly in the enumerated objects.

Applies to