SecurityProtocolType Enumeration


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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.

Namespace:   System.Net
Assembly:  System (in System.dll)

Public Enumeration SecurityProtocolType

Member nameDescription

Specifies the Secure Socket Layer (SSL) 3.0 security protocol.


Specifies the system default security protocol as defined by Schannel.


Specifies the Transport Layer Security (TLS) 1.0 security protocol.


Specifies the Transport Layer Security (TLS) 1.1 security protocol.


Specifies the Transport Layer Security (TLS) 1.2 security protocol.

This enumeration defines permissible values for the SecurityProtocol property and specifies the security protocols that are used by instances of the SslStream class.

The following code example demonstrates creating a TcpClient that uses the SslStream class to communicate with a server.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top