SchemaDeployment.OnVerifyPlan 方法

在已创建部署计划之后在部署执行期间调用,以允许自定义类对自定义 DatabaseSchemaProvider 进行额外处理。

命名空间:  Microsoft.Data.Schema.Build
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
Protected Overridable Function OnVerifyPlan ( _
    plan As DeploymentPlan _
) As ICollection(Of DeploymentPlanProblem)
protected virtual ICollection<DeploymentPlanProblem> OnVerifyPlan(
    DeploymentPlan plan
)
protected:
virtual ICollection<DeploymentPlanProblem^>^ OnVerifyPlan(
    DeploymentPlan^ plan
)
abstract OnVerifyPlan : 
        plan:DeploymentPlan -> ICollection<DeploymentPlanProblem> 
override OnVerifyPlan : 
        plan:DeploymentPlan -> ICollection<DeploymentPlanProblem> 
protected function OnVerifyPlan(
    plan : DeploymentPlan
) : ICollection<DeploymentPlanProblem>

参数

返回值

类型:System.Collections.Generic.ICollection<DeploymentPlanProblem>
DataSchemaError 对象的列表,用于表示在验证过程中遇到的错误。默认实现返回 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

SchemaDeployment 类

Microsoft.Data.Schema.Build 命名空间

DatabaseSchemaProvider

DataSchemaError