Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Overview

Registers a new query string parameter.

RestRequest myRestRequest.AddQueryParameter(name: string, value: string)

Arguments

string name
Name of query string parameter
string value
Value of query string parameter

Remarks

Name argument is required.

Example

var client = $Rest.Create('http://targetserver');
var request = client.Request();
request.AddQueryParameter('x',1);
var response = request.Execute(); // executed url : http://targetserver/?x=1

Examples

var client = $Rest.Create('http://targetserver');
var request = client.Request();
request.AddQueryParameter('x',1);
var response = request.Execute(); // executed url : http://targetserver/?x=1
  • No labels