Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
  • None
User Action:
  • None

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)
Public Function Expand ( _
	path As String _
) As DataServiceQuery(Of TElement)
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<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<TElement> with the expand option set in the URI generated by the returned query.