SqlConnectionEncryptOption.Optional Property    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.SqlConnectionEncryptOptionPublic Shared ReadOnly Property Optional As SqlConnectionEncryptOption