赞
踩
//忽略证书
System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;
// 创建ExchangeService实例
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
service.Url = new Uri(exchangeUrl);
service.Credentials = new WebCredentials(username, password);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。