DataServiceQuery<TElement>.Expand Method (String)
Expands a query to include entities from a related entity set in the query response.
Namespace: System.Data.Services.Client
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Syntax
'Declaration
Public Function Expand ( _
path As String _
) As DataServiceQuery(Of TElement)
'Usage
Dim instance As DataServiceQuery
Dim path As String
Dim returnValue As DataServiceQuery(Of TElement)
returnValue = instance.Expand(path)
public DataServiceQuery<TElement> Expand(
string path
)
public:
DataServiceQuery<TElement>^ Expand(
String^ path
)
member Expand :
path:string -> DataServiceQuery<'TElement>
public function Expand(
path : String
) : DataServiceQuery<TElement>
Parameters
- path
Type: System.String
The expand path in the format Orders/Order_Details.
Return Value
Type: System.Data.Services.Client.DataServiceQuery<TElement>
A new query that includes the requested $expand query option appended to the URI of the supplied query.
Remarks
The Expand(String) method creates a new DataServiceQuery<TElement> with the expand option set in the URI generated by the returned query.