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>
一种新查询,可将所请求的 $expand 查询选项追加到所提供查询的 URI。
注释
Expand(String) 方法创建了一个新的 DataServiceQuery<TElement>,并在由返回的查询生成的 URI 中设置了扩展选项。