Share via


SqlConnectionEncryptOption.Optional Property

Definition

Specifies that TLS encryption is optional when connecting to the server. If the server requires encryption, encryption will be negotiated.

public:
 static property Microsoft::Data::SqlClient::SqlConnectionEncryptOption ^ Optional { Microsoft::Data::SqlClient::SqlConnectionEncryptOption ^ get(); };
public static Microsoft.Data.SqlClient.SqlConnectionEncryptOption Optional { get; }
static member Optional : Microsoft.Data.SqlClient.SqlConnectionEncryptOption
Public Shared ReadOnly Property Optional As SqlConnectionEncryptOption

Property Value

Applies to