TSqlModel.CheckVersionCompatibility 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
验证模型以确定它是否包含与目标版本的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
用于取消模型检查的令牌。