DeploymentPlanModifier 类

定义

表示可以修改部署计划的 constributor

public abstract class DeploymentPlanModifier : Microsoft.SqlServer.Dac.Deployment.DeploymentPlanContributor
type DeploymentPlanModifier = class
    inherit DeploymentPlanContributor
Public MustInherit Class DeploymentPlanModifier
Inherits DeploymentPlanContributor
继承

构造函数

名称 说明
DeploymentPlanModifier()

表示可以修改部署计划的 constributor

属性

名称 说明
Canceled

获取一个值,该值指示是否已取消参与者

(继承自 DeploymentContributor)
CancellationToken

CancellationToken用于指示是否应取消参与者执行

(继承自 DeploymentContributor)

方法

名称 说明
AddAfter(DeploymentPlanHandle, DeploymentStep, DeploymentStep)

提供在现有步骤后添加步骤来修改现有计划的方法

AddBefore(DeploymentPlanHandle, DeploymentStep, DeploymentStep)

通过添加指定步骤后的步骤,为子类修改计划提供了一种方法

Cancel()

取消参与者的执行

(继承自 DeploymentContributor)
Dispose()

继承自 Dispose()

(继承自 DeploymentContributor)
Dispose(Boolean)

表示可以修改部署计划的 constributor

(继承自 DeploymentContributor)
OnApplyDeploymentConfiguration(DeploymentContributorContext, ICollection<DeploymentContributorConfigurationStream>)

由 DacFx 中的部署过程调用,使代码有机会从提供的文件收集配置信息。 在方法结束时,将释放所有流。 需要从流获取数据的参与者必须在此方法期间读取和缓存数据 - 尝试在以后的方法(如 OnExecute(DeploymentPlanContributorContext) 该方法)期间从流中读取数据会失败。

(继承自 DeploymentContributor)
OnEstablishDeploymentConfiguration(DeploymentContributorConfigurationSetup)

由 DacFx 中的生成过程调用,使代码有机会修改部署配置。

(继承自 DeploymentContributor)
OnExecute(DeploymentPlanContributorContext)

由部署引擎调用以允许自定义参与者执行其唯一任务

(继承自 DeploymentPlanContributor)
PublishMessage(ExtensibilityError)

将消息发布到部署引擎。 部署引擎将处理消息并将其报告给使用者。

(继承自 DeploymentContributor)
Remove(DeploymentPlanHandle, DeploymentStep)

提供从计划中删除指定步骤的方法

适用于