SqlConnectionEncryptOption.Mandatory Property

Definition

Specifies that TLS encryption is required when connecting to the server. If the server doesn't support encryption, the connection will fail.

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

Property Value

Applies to

Toode Versioonid
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