C# 如何查找API调用时使用的tls版本

C# 如何查找API调用时使用的tls版本,c#,ssl,tls1.2,tls1.1,C#,Ssl,Tls1.2,Tls1.1,在C#(RestClient和WebRequest)中调用API时如何查找TLS版本? 如何更改TLS版本?有没有办法更改TLS版本 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11; 1.我希望这对你有帮助。我希望这对你有帮助。

在C#(RestClient和WebRequest)中调用API时如何查找TLS版本? 如何更改TLS版本?有没有办法更改TLS版本

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | 
                                   SecurityProtocolType.Tls11;
1.我希望这对你有帮助。我希望这对你有帮助。