IExpandProvider.ApplyExpansions Method
Applies expansions to the specified queryable parameter.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Function ApplyExpansions ( _
queryable As IQueryable, _
expandPaths As ICollection(Of ExpandSegmentCollection) _
) As IEnumerable
'Usage
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
Parameters
- queryable
Type: System.Linq.IQueryable
The IQueryable<T> object to expand.
- expandPaths
Type: System.Collections.Generic.ICollection<ExpandSegmentCollection>
A collection of ExpandSegmentCollection paths to expand.
Return Value
Type: System.Collections.IEnumerable
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.