DataServiceQuery(Of 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)

'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)

Parameters

path
Type: System.String
The expand path in the format Orders/Order_Details.

Return Value

Type: System.Data.Services.Client.DataServiceQuery(Of TElement)
A new query that includes the requested $expand query option appended to the URI of the supplied query.

The Expand(String) method creates a new DataServiceQuery(Of TElement) with the expand option set in the URI generated by the returned query.

Show: