Gets or sets a Boolean value that indicates whether SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed.
Public Property Encrypt As Boolean
Dim instance As SqlConnectionStringBuilder Dim value As Boolean value = instance.Encrypt instance.Encrypt = value
public bool Encrypt { get; set; }
public: property bool Encrypt { bool get (); void set (bool value); }
public function get Encrypt () : boolean public function set Encrypt (value : boolean)
This property corresponds to the "Encrypt" key within the connection string.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98