DataServiceQuery<TElement>.Expand Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a new DataServiceQuery<TElement> that includes the expand option in the URI that is generated by the returned query.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Public Function Expand ( _
    path As String _
) As DataServiceQuery(Of TElement)
public DataServiceQuery<TElement> Expand(
    string path
)

Parameters

  • path
    Type: System.String
    A string value that enumerates the related entities to include in the query.

Return Value

Type: System.Data.Services.Client.DataServiceQuery<TElement>
A query instance that includes the expand path.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.