【发布时间】:2013-12-04 11:49:04
【问题描述】:
我的问题是对还是错我不知道,但我想知道是否可以使用 WebClient 返回 post 方法的 UploadStringAsync() 的值?
string serviceURL = REST_URI + servicePath;
Uri URI = new Uri(serviceURL);
System.Net.WebClient webClient = new WebClient();
webClient.Headers["ContentType"] = "application/json";
webClient.Headers["Accept"] = "application/json";
webClient.UploadStringCompleted += this.sendPostCompleted;
webClient.UploadStringAsync(URI, HTTP_POST, result);
return ??;
如果我们可以返回UploadStringAsync(URI, HTTP_POST, result); 的值,请告诉我?
【问题讨论】:
标签: c# .net windows-phone return webclient