Microsoft.Data.SqlClient.SqlConnectionEncryptOption
These options are used to control encryption behavior of the communication between the server and the client.
Specifies that TLS encryption is required when connecting to the server. If the server doesn't support encryption, the connection will fail.
Specifies that TLS encryption is optional when connecting to the server. If the server requires encryption, encryption will be negotiated.
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.
public SqlConnectionEncryptOption()
Enables implicit conversion of a SqlConnectionEncryptOption to a boolean. Mandatory and Strict convert to true. Optional converts to false.
Enables implicit conversion of a boolean to a SqlConnectionEncryptOption. A value of true converts to Mandatory. A value of false converts to Optional.
Converts the specified string representation of a logical value to its SqlConnectionEncryptOption equivalent.
Converts the specified string representation of a logical value to its SqlConnectionEncryptOption equivalent and returns a value that indicates whether the conversion succeeded.