ConnectionSettings.EncryptConnection 属性

Gets or sets the Boolean property value that specifies whether the connection is encrypted.

命名空间:  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)

属性值

类型:System.Boolean
A Boolean value that specifies whether the connection is encrypted.If True, the connection is encrypted.If False (default), the connection is not encrypted.

请参阅

参考

ConnectionSettings 类

Microsoft.SqlServer.Management.Common 命名空间