SqlConnectionEncryptOption.Mandatory 属性

定义

指定在连接到服务器时需要 TLS 加密。 如果服务器不支持加密,连接将失败。

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

属性值

适用于