共用方式為


SqlDeploymentOptions.ScriptNewConstraintValidation 屬性

Get or set boolean that specifies whether constraints are validated after all changes are applied.

命名空間:  Microsoft.SqlServer.Dac.Deployment
組件:  Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)

語法

'宣告
Public ReadOnly Property ScriptNewConstraintValidation As Boolean 
    Get
'用途
Dim instance As SqlDeploymentOptions 
Dim value As Boolean 

value = instance.ScriptNewConstraintValidation
public bool ScriptNewConstraintValidation { get; }
public:
property bool ScriptNewConstraintValidation {
    bool get ();
}
member ScriptNewConstraintValidation : bool
function get ScriptNewConstraintValidation () : boolean

屬性值

型別:System.Boolean
True to validate check constraints; otherwise, false. Default is true.

備註

Constraints are always added with NOCHECK option; as a result their validation is skipped during creation.

請參閱

參考

SqlDeploymentOptions 類別

Microsoft.SqlServer.Dac.Deployment 命名空間