EWS 接口SSL多版本支持

在程序中添加如下代碼即可:

System.Net.ServicePointerManager.SecurityProtocol = SecurityProtocolType.Tls | 

       SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;

其中Ssl3 需要.net 4.5以上版本。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章