ConnectionSettings.EncryptConnection Property

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

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

public bool EncryptConnection { get; set; }

Property Value

Type: 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.

Community Additions

Show: