Call ASP.Net Web API with Parameters in C# for Windows Store Application RRS feed

  • Question

  • I am writing to ask how best an ASP.Net Web API can be called with three parameters in a Windows Store application, utilizing C#;

    The below code sample demonstrated a call to an ASP.Net Web API with no parameters - the next goal is to call the ASP.Net Web API with three parameters; 

    Thanks in advance for insight, guidance;

    var client = new HttpClient();
                        client.MaxResponseContentBufferSize = 1024 * 1024; // Read up to 1 MB of data 
                        var response = await client.GetAsync(new Uri("http://localhost:42204/api/values"));
                        var result = await response.Content.ReadAsStringAsync();
                        dynamic jObj = JsonConvert.DeserializeObject(result);

    robert hellestrae

    Thursday, July 25, 2013 3:01 PM