共用方式為


DataServiceQuery<TElement>.Expand 方法 (String)

展開查詢,將相關實體集的實體包含在查詢回應中。

命名空間:  System.Data.Services.Client
組件:  Microsoft.Data.Services.Client (在 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)
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>

參數

  • path
    型別:System.String
    展開路徑的格式為 Orders/Order_Details。

傳回值

型別:System.Data.Services.Client.DataServiceQuery<TElement>
新查詢,其中包含附加到所提供查詢 URI 之要求的 $expand 查詢選項。

備註

Expand(String) 方法會使用所傳回查詢產生之 URI 中設定的展開選項來建立新的 DataServiceQuery<TElement>

請參閱

參考

DataServiceQuery<TElement> 類別

Expand 多載

System.Data.Services.Client 命名空間