共用方式為


DeploymentPlanContributor.OnExecute 方法

Indicates a member called by the deployment engine to allow custom contributors to execute their unique tasks.

命名空間:  Microsoft.SqlServer.Dac.Deployment
組件:  Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)

語法

'宣告
Protected MustOverride Sub OnExecute ( _
    context As DeploymentPlanContributorContext _
)
'用途
Dim context As DeploymentPlanContributorContext 

Me.OnExecute(context)
protected abstract void OnExecute(
    DeploymentPlanContributorContext context
)
protected:
virtual void OnExecute(
    DeploymentPlanContributorContext^ context
) abstract
abstract OnExecute : 
        context:DeploymentPlanContributorContext -> unit
protected abstract function OnExecute(
    context : DeploymentPlanContributorContext
)

參數

例外狀況

例外狀況 條件
DeploymentFailedException

If there is a critical error the should stop the deployment process from continuing, implementing contributors may throw a DeploymentFailedException.

請參閱

參考

DeploymentPlanContributor 類別

Microsoft.SqlServer.Dac.Deployment 命名空間