SslStreamSecurityElement.SslProtocols Eigenschap

Definitie

Hiermee geeft u de lijst met SSL/TLS-protocollen die moeten worden onderhandeld bij het gebruik van een clientreferentietype van TcpClientCredentialType.Certificate. De waarde kan een combinatie zijn van een van de volgende opsommingsleden: Ssl3, Tls, Tls11, Tls12.

public:
 property System::Security::Authentication::SslProtocols SslProtocols { System::Security::Authentication::SslProtocols get(); };
[System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=System.Security.Authentication.SslProtocols.Default | System.Security.Authentication.SslProtocols.Tls11 | System.Security.Authentication.SslProtocols.Tls12)]
public System.Security.Authentication.SslProtocols SslProtocols { get; }
[System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=System.Security.Authentication.SslProtocols.Tls | System.Security.Authentication.SslProtocols.Tls11 | System.Security.Authentication.SslProtocols.Tls12)]
public System.Security.Authentication.SslProtocols SslProtocols { get; }
[<System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=System.Security.Authentication.SslProtocols.Default | System.Security.Authentication.SslProtocols.Tls11 | System.Security.Authentication.SslProtocols.Tls12)>]
member this.SslProtocols : System.Security.Authentication.SslProtocols
[<System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=System.Security.Authentication.SslProtocols.Tls | System.Security.Authentication.SslProtocols.Tls11 | System.Security.Authentication.SslProtocols.Tls12)>]
member this.SslProtocols : System.Security.Authentication.SslProtocols
Public ReadOnly Property SslProtocols As SslProtocols

Waarde van eigenschap

Retourneert SslProtocols.

Kenmerken

Opmerkingen

De standaardwaarde is Ssl3 | Tls | Tls11 | Tls12. Versies van het framework vóór 4.6 ondersteunen alleen Ssl3 en Tls. Als deze niet zijn opgenomen, is communicatie met eerdere versies van het framework niet mogelijk. Als u Tls11 en/of Tls12 opgeeft, wordt het gebruik van Ssl3 uitgeschakeld, zelfs als deze is opgenomen.

Van toepassing op