SecurityProtocolType 列舉

定義

指定 Schannel 安全性套件所支援的安全性通訊協定 (Protocol)。

此列舉支援其成員值的位元組合。

public enum class SecurityProtocolType
[System.Flags]
public enum SecurityProtocolType
[<System.Flags>]
type SecurityProtocolType = 
Public Enum SecurityProtocolType
繼承
SecurityProtocolType
屬性

欄位

Ssl3 48

指定 Secure Socket Layer (SSL) 3.0 安全性通訊協定。 SSL 3.0 已被傳輸層安全性 (TLS) 通訊協定取代,且只提供作為回溯相容性之用。

SystemDefault 0

讓作業系統選擇最適用的通訊協定,並封鎖不安全的通訊協定。 除非您的應用程式有不這麼做的特定理由,否則您應該使用此值。

Tls 192

指定 Transport Layer Security (TLS) 1.0 安全性通訊協定。 TLS 1.0 通訊協定是在 IETF RFC 2246 中定義。

Tls11 768

指定 Transport Layer Security (TLS) 1.1 安全性通訊協定。 TLS 1.1 通訊協定是在 IETF RFC 4346 中定義。 在 Windows 系統上,從 Windows 7 開始支援這個值。

Tls12 3072

指定 Transport Layer Security (TLS) 1.2 安全性通訊協定。 TLS 1.2 通訊協定是在 IETF RFC 5246 中定義。 在 Windows 系統上,從 Windows 7 開始支援這個值。

Tls13 12288

指定 TLS 1.3 安全性通訊協定。 TLS 通訊協定是在 IETF RFC 8446 中定義。

備註

此列舉會定義一組值,您可以用來指定要使用的傳輸安全性通訊協定。 它是 屬性的 SecurityProtocol 列舉型別。 當您在 .NET Framework中使用 HTTP API 時,請使用此列舉來判斷傳輸安全通訊協定原則,例如 WebClientHttpWebRequestHttpClientSmtpClient (使用 TLS/SSL) 。

傳輸層安全性 (TLS) 通訊協定假設連線導向通訊協定通常是 TCP 正在使用中。

適用於

另請參閱