SqlParameter.ForceColumnEncryption Property
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.
Enforces encryption of a parameter when using Always Encrypted. If SQL Server informs the driver that the parameter does not need to be encrypted, the query using the parameter will fail. This property provides additional protection against security attacks that involve a compromised SQL Server providing incorrect encryption metadata to the client, which may lead to data disclosure.
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
Property Value
true
if the parameter has a force column encryption; otherwise, false
.