我很难尝试在WUApiLib.WebProxy / IUpdateSession.WebProxy中使用代理设置。
我试过以下几种方法,但没有运气:
IUpdateSession session = new UpdateSession();
session.WebProxy.AutoDetect(); //Error: Method, Delegate or Event is expected.然后,我尝试了以下几点:
private delegate IUpdateSession D();
IUpdateSession session = new UpdateSession();
D proxy = new D(session.WebProxy.AutoDetect()); //Same error...最后,尝试简单地添加地址:
IUpdateSession session = new UpdateSession();
session.WebProxy.Address = "http://198.13.44.1:8080"; //This seems to run, but i'm not sure how i can tell for certain if its working good.是否可以将System.Net.WebProxy的实例传递给在IUpdateSession of WUApiLib中找到的WebProxy
发布于 2017-04-24 14:34:07
IUpdateSession为WebProxy属性使用IWebProxy接口。
AutoDetect属性是一个布尔属性,因此您应该将其设置为true或false,而不是像方法一样调用它。
https://stackoverflow.com/questions/19451664
复制相似问题