SqlConnectionEncryptOption.Strict Property

Definition

Enables and requires TDS 8.0, TLS encryption to the server. If the server doesn't support TDS 8.0, TLS encryption, the connection will fail.

C#
public static Microsoft.Data.SqlClient.SqlConnectionEncryptOption Strict { get; }

Property Value

Applies to

Product Versions
SqlClient .NET Core 5.0, 5.1, 5.2
SqlClient .NET Framework 5.0, 5.1, 5.2
SqlClient .NET Standard 5.0, 5.1, 5.2