SqlConnectionStringBuilderHelper.GetConnectionStringWithAlwaysEncryptedSetting 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetConnectionStringWithAlwaysEncryptedSetting(SqlConnectionStringBuilder, Boolean) |
若 .NET 框架中有 連接字串 設定 AlwaysEncrypted,則回傳更新後的 連接字串 No-op 若無 .NET 4.6 則回傳 No-op |
| GetConnectionStringWithAlwaysEncryptedSetting(SqlConnectionStringBuilder, Boolean) |
若 .NET 框架中有 連接字串 設定 AlwaysEncrypted,則回傳更新後的 連接字串 No-op 若無 .NET 4.6 則回傳 No-op |
GetConnectionStringWithAlwaysEncryptedSetting(SqlConnectionStringBuilder, Boolean)
若 .NET 框架中有 連接字串 設定 AlwaysEncrypted,則回傳更新後的 連接字串 No-op 若無 .NET 4.6 則回傳 No-op
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
參數
- connectionStringBuilder
- SqlConnectionStringBuilder
一個 連接字串 建構器,可能一直都指定了加密設定。
- enableAlwaysEncrypted
- Boolean
為 true,若要啟用「始終加密」設定,否則為 False
傳回
連接字串 將欄位加密設定設為啟用或停用,依據 enableAlwaysEncrypted 設定
適用於
GetConnectionStringWithAlwaysEncryptedSetting(SqlConnectionStringBuilder, Boolean)
若 .NET 框架中有 連接字串 設定 AlwaysEncrypted,則回傳更新後的 連接字串 No-op 若無 .NET 4.6 則回傳 No-op
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
參數
- connectionStringBuilder
- SqlConnectionStringBuilder
一個 連接字串 建構器,可能一直都指定了加密設定。
- enableAlwaysEncrypted
- Boolean
為 true,若要啟用「始終加密」設定,否則為 False
傳回
連接字串 將欄位加密設定設為啟用或停用,依據 enableAlwaysEncrypted 設定