SqlParameter.ForceColumnEncryption 屬性

定義

使用 Always Encrypted 時,會強制加密參數。 如果 SQL Server 向驅動程式告知參數不需要加密,使用該參數的查詢就會失敗。 此屬性會針對受到安全性攻擊危害的 SQL Server 提供額外的保護,此類 SQL Server 會將不正確的加密中繼資料提供給用戶端,而可能導致資料洩露。

public:
 property bool ForceColumnEncryption { bool get(); void set(bool value); };
public bool ForceColumnEncryption { get; set; }
member this.ForceColumnEncryption : bool with get, set
Public Property ForceColumnEncryption As Boolean

屬性值

如果參數有強制資料行加密,則為 true,否則為 false

適用於