共用方式為


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 命名空間