SecurityProtocolType 列舉

定義

指定 Schannel 安全性套件所支援的安全性通訊協定 (Protocol)。Specifies the security protocols that are supported by the Schannel security package.

此列舉具有 FlagsAttribute 個屬性允許以位元方式合併其成員值。

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

欄位

Ssl3 48

指定 Secure Socket Layer (SSL) 3.0 安全性通訊協定。Specifies the Secure Socket Layer (SSL) 3.0 security protocol. SSL 3.0 已被傳輸層安全性 (TLS) 通訊協定取代,且只提供作為回溯相容性之用。SSL 3.0 has been superseded by the Transport Layer Security (TLS) protocol and is provided for backward compatibility only.

SystemDefault 0

讓作業系統選擇最適用的通訊協定,並封鎖不安全的通訊協定。Allows the operating system to choose the best protocol to use, and to block protocols that are not secure. 除非您的應用程式有不這麼做的特定理由,否則您應該使用此值。Unless your app has a specific reason not to, you should use this value.

Tls 192

指定 Transport Layer Security (TLS) 1.0 安全性通訊協定。Specifies the Transport Layer Security (TLS) 1.0 security protocol. TLS 1.0 通訊協定是在 IETF RFC 2246 中定義。The TLS 1.0 protocol is defined in IETF RFC 2246.

Tls11 768

指定 Transport Layer Security (TLS) 1.1 安全性通訊協定。Specifies the Transport Layer Security (TLS) 1.1 security protocol. TLS 1.1 通訊協定是在 IETF RFC 4346 中定義。The TLS 1.1 protocol is defined in IETF RFC 4346. 在 Windows 系統上,從 Windows 7 開始支援這個值。On Windows systems, this value is supported starting with Windows 7.

Tls12 3072

指定 Transport Layer Security (TLS) 1.2 安全性通訊協定。Specifies the Transport Layer Security (TLS) 1.2 security protocol. TLS 1.2 通訊協定是在 IETF RFC 5246 中定義。The TLS 1.2 protocol is defined in IETF RFC 5246. 在 Windows 系統上,從 Windows 7 開始支援這個值。On Windows systems, this value is supported starting with Windows 7.

Tls13 12288

指定 TLS 1.3 安全性通訊協定。Specifies the TLS 1.3 security protocol. TLS 通訊協定是在 IETF RFC 8446 中定義。The TLS protocol is defined in IETF RFC 8446.

備註

這個列舉會定義一組值,您可以用來指定要使用的傳輸安全性通訊協定。This enumeration defines the set of values that you can use to specify which transport security protocol to use. 這是 SecurityProtocol 屬性的列舉類型。It is the enumerated type for the SecurityProtocol property. 當您使用 .NET Framework 中的 HTTP Api (例如 WebClientHttpWebRequestHttpClientSmtpClient (使用 TLS/SSL)時,請使用此列舉來決定傳輸安全性通訊協定原則。Use this enumeration to determine your transport security protocol policy when you're using HTTP APIs in the .NET Framework such as WebClient, HttpWebRequest, HttpClient, and SmtpClient (when using TLS/SSL).

傳輸層安全性(TLS)通訊協定會假設連接導向通訊協定(通常是 TCP)正在使用中。The Transport Layer Security (TLS) protocols assume that a connection-oriented protocol, typically TCP, is in use.

適用於

另請參閱