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>
参数
- plan
类型:Microsoft.Data.Schema.Build.DeploymentPlan
DeploymentPlanProblem 对象的集合。
返回值
类型:System.Collections.Generic.ICollection<DeploymentPlanProblem>
DataSchemaError 对象的列表,用于表示在验证过程中遇到的错误。默认实现返回 nullnull 引用(在 Visual Basic 中为 Nothing)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。