Können wir ServicePointManager um vier Protokolle erweitern.SecurityProtocol?

Ich möchte alle Sicherheitsprotokolle von SSL3 bis TLS 1.2 unterstützen. Aber bei der Suche im Netz habe ich entweder Code als @ gefund

`ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11;`

oder als

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

Aber ich möchte alle Protokolle unterstützen. Ist es also falsch, als @ zu schreibe

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

Ich habe beim Schreiben des obigen Codes keine Kompilierungsfehler erhalten. Wird dies zu Problemen führen?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage