ConnectionSettings.EncryptConnection 属性
获取或设置 Boolean 属性值,该值指定是否对连接进行加密。
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)
语法
声明
Public Property EncryptConnection As Boolean
Get
Set
用法
Dim instance As ConnectionSettings
Dim value As Boolean
value = instance.EncryptConnection
instance.EncryptConnection = value
public bool EncryptConnection { get; set; }
public:
property bool EncryptConnection {
bool get ();
void set (bool value);
}
member EncryptConnection : bool with get, set
function get EncryptConnection () : boolean
function set EncryptConnection (value : boolean)
属性值
类型:Boolean
一个 Boolean 值,该值指定是否对连接进行加密。如果为 True,则对连接进行加密。如果为 False(默认值),则不对连接进行加密。