Export (0) Print
Expand All

DataServiceQuery<TElement>.AddQueryOption Method

Creates a new DataServiceQuery<TElement> that includes the query 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)

public DataServiceQuery<TElement> AddQueryOption(
	string name,
	Object value
)

Parameters

name
Type: System.String
The string value that contains the name of the query string option to add.
value
Type: System.Object
The object that contains the value of the query string option.

Return Value

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

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show:
© 2014 Microsoft