当前位置:编程学习 > C#/ASP.NET >>

参数设置的问题??、

Upload(string url, object parameters, NamedFileStream[] files, Action<System.Net.WebHeaderCollection, System.IO.Stream> successCallback, Action<System.Net.WebException> failCallback);
请问第二个参数Action<System.Net.WebHeaderCollection, System.IO.Stream>,应该如何设置,我使用htpplib的方法,应该如何设置???? --------------------编程问答-------------------- 不晓得你想干嘛哦! --------------------编程问答-------------------- 传一个委托:
void somefunction(System.Net.WebHeaderCollection whcol, System.IO.Stream stream)
{
    ... // put your code here...
}

调用
Upload(url, files, new Action<System.Net.WebHeaderCollection, System.IO.Stream>(somefunction), new Action<System.Net.WebException>(anotherfunction));

somefunction将会在Upload成功后调用。
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,