SqlParameter.ForceColumnEncryption SqlParameter.ForceColumnEncryption SqlParameter.ForceColumnEncryption SqlParameter.ForceColumnEncryption Property

Definition

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.

Applies to