语言

TSqlModel.CheckVersionCompatibility 方法

定义

验证模型以确定它是否包含与目标版本的SQL Server或Azure SQL 数据库不兼容的任何元素,并返回任何错误或警告。

public System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Dac.Model.DacModelError> CheckVersionCompatibility(Microsoft.SqlServer.Dac.Model.SqlServerVersion targetVersion, System.Threading.CancellationToken cancelToken);
member this.CheckVersionCompatibility : Microsoft.SqlServer.Dac.Model.SqlServerVersion * System.Threading.CancellationToken -> seq<Microsoft.SqlServer.Dac.Model.DacModelError>
Public Function CheckVersionCompatibility (targetVersion As SqlServerVersion, cancelToken As CancellationToken) As IEnumerable(Of DacModelError)

参数

targetVersion
SqlServerVersion

导出的目标 sql 版本

cancelToken
CancellationToken

用于取消模型检查的令牌。

返回

适用于