Compartir a través de


DataServiceQuery<TElement>.AddQueryOption Method

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

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)

Syntax

'Declaration
Public Function AddQueryOption ( _
    name As String, _
    value As Object _
) As DataServiceQuery(Of TElement)
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.

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.