共用方式為


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

屬性值

適用於