在.NET 4.0 WebClient类,是有没有办法做一个PUT?
with the WebClient class in .NET 4.0, is there a way to do a PUT?
我知道你可以做DownloadString()和UploadString()一个POST一个GET,但有一个方法或属性,让你做一个PUT?
I know you can do a GET with DownloadString() and a POST with UploadString(), but is there a method or property that lets you do a PUT?
感谢。
有重载 UploadString
让您指定的方法。例如,这个需要一个乌里
,一个字符串
的方法,以及字符串
的数据。
There are overloads for UploadString
that let you specify the method. For example, this one takes a Uri
, a string
for the method, and a string
for the data.
上一篇:移动物体的方向及其面临使用二维html5Canvas和ctx.rotate功能物体、方向、功能、html5Canvas
下一篇:的List<>的函数功能:LT;> S,与普通的返回类型,但为什么编译出错?函数、但为、类型、普通