DeploymentPlanContributor 类

定义

表示部署过程的参与者

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

构造函数

名称 说明
DeploymentPlanContributor()

表示部署过程的参与者

属性

名称 说明
Canceled

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

(继承自 DeploymentContributor)
CancellationToken

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

(继承自 DeploymentContributor)

方法

名称 说明
Cancel()

取消参与者的执行

(继承自 DeploymentContributor)
Dispose()

继承自 Dispose()

(继承自 DeploymentContributor)
Dispose(Boolean)

表示部署过程的参与者

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

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

(继承自 DeploymentContributor)
OnEstablishDeploymentConfiguration(DeploymentContributorConfigurationSetup)

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

(继承自 DeploymentContributor)
OnExecute(DeploymentPlanContributorContext)

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

PublishMessage(ExtensibilityError)

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

(继承自 DeploymentContributor)

适用于