SqlConnectionStringBuilderHelper.GetConnectionStringWithAlwaysEncryptedSetting Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetConnectionStringWithAlwaysEncryptedSetting(SqlConnectionStringBuilder, Boolean) |
Sets AlwaysEncrypted setting in connection string if it is available in the .NET framework and returns the updated connection string No-op if there is not .NET 4.6 |
GetConnectionStringWithAlwaysEncryptedSetting(SqlConnectionStringBuilder, Boolean) |
Sets AlwaysEncrypted setting in connection string if it is available in the .NET framework and returns the updated connection string No-op if there is not .NET 4.6 |
GetConnectionStringWithAlwaysEncryptedSetting(SqlConnectionStringBuilder, Boolean)
Sets AlwaysEncrypted setting in connection string if it is available in the .NET framework and returns the updated connection string No-op if there is not .NET 4.6
public static string GetConnectionStringWithAlwaysEncryptedSetting (Microsoft.Data.SqlClient.SqlConnectionStringBuilder connectionStringBuilder, bool enableAlwaysEncrypted);
static member GetConnectionStringWithAlwaysEncryptedSetting : Microsoft.Data.SqlClient.SqlConnectionStringBuilder * bool -> string
Public Shared Function GetConnectionStringWithAlwaysEncryptedSetting (connectionStringBuilder As SqlConnectionStringBuilder, enableAlwaysEncrypted As Boolean) As String
Parameters
- connectionStringBuilder
- SqlConnectionStringBuilder
A connection string builder that might have always encrypted setting specified.
- enableAlwaysEncrypted
- Boolean
True, to enable always encrypted setting, else False
Returns
connection string with Column Encryption Setting set to Enabled or Disabled based on enableAlwaysEncrypted
Applies to
GetConnectionStringWithAlwaysEncryptedSetting(SqlConnectionStringBuilder, Boolean)
Sets AlwaysEncrypted setting in connection string if it is available in the .NET framework and returns the updated connection string No-op if there is not .NET 4.6
public static string GetConnectionStringWithAlwaysEncryptedSetting (System.Data.SqlClient.SqlConnectionStringBuilder connectionStringBuilder, bool enableAlwaysEncrypted);
static member GetConnectionStringWithAlwaysEncryptedSetting : System.Data.SqlClient.SqlConnectionStringBuilder * bool -> string
Public Shared Function GetConnectionStringWithAlwaysEncryptedSetting (connectionStringBuilder As SqlConnectionStringBuilder, enableAlwaysEncrypted As Boolean) As String
Parameters
- connectionStringBuilder
- SqlConnectionStringBuilder
A connection string builder that might have always encrypted setting specified.
- enableAlwaysEncrypted
- Boolean
True, to enable always encrypted setting, else False
Returns
connection string with Column Encryption Setting set to Enabled or Disabled based on enableAlwaysEncrypted