DataServiceQuery<TElement>.Expand(String) 方法
定义
使用扩展选项(在由返回的查询所生成的 URI 中设置)创建新的 DataServiceQuery<TElement>。Creates a new DataServiceQuery<TElement> with the expand option set in the URI generated by the returned query.
public:
System::Data::Services::Client::DataServiceQuery<TElement> ^ Expand(System::String ^ path);
public System.Data.Services.Client.DataServiceQuery<TElement> Expand (string path);
member this.Expand : string -> System.Data.Services.Client.DataServiceQuery<'Element>
Public Function Expand (path As String) As DataServiceQuery(Of TElement)
参数
- path
- String
一个字符串值,其中包含请求 URI。A string value that contains the requesting URI.
返回
一个包含请求的 $expand 查询选项的新查询,这些查询选项已附加到所提供查询的 URI。A new query that includes the requested $expand query option appended to the URI of the supplied query.