0% found this document useful (0 votes)
199 views

SecurityProtocolType Enum (System - Net) - Microsoft Docs

This enumeration specifies the security protocols supported by the Schannel security package in .NET. It defines values for SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2, and TLS 1.3 protocols. The enumeration uses a FlagsAttribute so that values can be combined using bitwise operators. It is used to specify the transport security protocol for HTTP APIs like WebClient and HttpWebRequest.

Uploaded by

Krb Richard
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
199 views

SecurityProtocolType Enum (System - Net) - Microsoft Docs

This enumeration specifies the security protocols supported by the Schannel security package in .NET. It defines values for SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2, and TLS 1.3 protocols. The enumeration uses a FlagsAttribute so that values can be combined using bitwise operators. It is used to specify the transport security protocol for HTTP APIs like WebClient and HttpWebRequest.

Uploaded by

Krb Richard
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SecurityProtocolType Enum

Namespace: System.Net
Assemblies: System.dll, netstandard.dll, System.Net.ServicePoint.dll

Specifies the security protocols that are supported by the Schannel security package.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
In this article
Definition
Fields
Remarks
Applies to

C# = Copy

[System.Flags]
public enum SecurityProtocolType

Inheritance Object 9 ValueType 9 Enum 9 SecurityProtocolType

Attributes FlagsAttribute

Fields
Ssl3 48 Specifies the Secure Socket Layer (SSL) 3.0 security protocol. 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 Specifies the Transport Layer Security (TLS) 1.0 security protocol. The TLS 1.0
protocol is defined in IETF RFC 2246.

Tls11 768 Specifies the Transport Layer Security (TLS) 1.1 security protocol. The TLS 1.1
protocol is defined in IETF RFC 4346. On Windows systems, this value is
supported starting with Windows 7.

Tls12 3072 Specifies the Transport Layer Security (TLS) 1.2 security protocol. The TLS 1.2
protocol is defined in IETF RFC 5246. On Windows systems, this value is
supported starting with Windows 7.

Tls13 12288 Specifies the TLS 1.3 security protocol. The TLS protocol is defined in IETF RFC
8446.

Remarks
This enumeration defines the set of values that you can use to specify which transport security protocol to use. It is the enumerated type
for the SecurityProtocol property. 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).

The Transport Layer Security (TLS) protocols assume that a connection-oriented protocol, typically TCP, is in use.

Applies to

.NET Core
3.0 Preview 7, 2.2, 2.1, 2.0

.NET Framework
4.8, 4.7.2, 4.7.1, 4.7, 4.6.2, 4.6.1, 4.6, 4.5.2, 4.5.1, 4.5, 4.0, 3.5, 3.0, 2.0, 1.1

.NET Standard
2.1 Preview, 2.0

Xamarin.Android
7.1

Xamarin.iOS
10.8

Xamarin.Mac
3.0

Is this page helpful?

 Yes  No

You might also like