SslStreamSecurityElement.SslProtocols Egenskap

Definition

Anger listan över SSL/TLS-protokoll som ska förhandlas när du använder en klientautentiseringstyp av TcpClientCredentialType.Certificate. Värdet kan vara en kombination av en av flera av följande uppräkningsmedlemmar: 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

Egenskapsvärde

Returnerar SslProtocols.

Attribut

Kommentarer

Standardvärdet är Ssl3 | Tls | Tls11 | Tls12. Versioner av ramverket före 4.6 stöder endast Ssl3 och Tls. Om dessa inte ingår är det inte möjligt att kommunicera med tidigare versioner av ramverket. Om du anger Tls11 och/eller Tls12 inaktiveras användningen av Ssl3, även om den har inkluderats.

Gäller för