共用方式為


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