UriJsonSource.QueryParameters Property

Provides access to a collection of parameters that the UriJsonSource passes to a JSON endpoint as HTTP request parameters.

Namespace: DevExpress.DataAccess.Json

Assembly: DevExpress.DataAccess.v21.2.dll


public QueryParameterCollection QueryParameters { get; }

Property Value

Type Description

Lists query parameters.


This property stores a collection of query parameters that the UriJsonSource appends to a JSON endpoint’s Uri.

The parameters are added to endpoint requests in the same order in which they are stored in the collection. Change the order of elements in the collection to reposition parameters in endpoint requests.


public static JsonDataSource CreateDataSourceWithAuthenticationInCode() {
    // Create a new UriJsonSource object and configure authentication data in it
    var jsonSource = new DevExpress.DataAccess.Json.UriJsonSource();
    jsonSource.Uri = new Uri(@"https://northwind.netcore.io/customers.json");

    jsonSource.QueryParameters.Add(new QueryParameter("id", "123456"));
    jsonSource.QueryParameters.Add(new QueryParameter("name", "MyName"));

    // Create JsonDataSource
    var jsonDataSource = new DevExpress.DataAccess.Json.JsonDataSource() {
        JsonSource = jsonSource

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the QueryParameters property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also