DacDeployOptions.TreatVerificationErrorsAsWarnings 属性

定义

获取或设置布尔值,指定是否将发布验证期间发生的错误视为警告。 在对目标数据库执行生成的部署计划之前,会先对该计划执行检查。 计划验证将检测仅有目标的对象(如索引)丢失等问题,必须解决这些问题以进行更改。 验证还检测以下情况:依赖项(如表或视图)因对复合项目的引用而存在,但未存在于目标数据库中。 您可选择将验证错误视为警告以获取问题的完整列表,而不是允许发布操作在出现第一个错误时停止。

public bool TreatVerificationErrorsAsWarnings { get; set; }
[Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "TreatVerificationErrorsAsWarnings")]
public bool TreatVerificationErrorsAsWarnings { get; set; }
member this.TreatVerificationErrorsAsWarnings : bool with get, set
[<Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "TreatVerificationErrorsAsWarnings")>]
member this.TreatVerificationErrorsAsWarnings : bool with get, set
Public Property TreatVerificationErrorsAsWarnings As Boolean

属性值

如果为 True,则将错误视为警告;否则为 false。 默认值为 false。

属性

适用于