DeploymentPlanModifier 類別

定義

代表一個可以修改部署計畫的貢獻者

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

建構函式

名稱 Description
DeploymentPlanModifier()

代表一個可以修改部署計畫的貢獻者

屬性

名稱 Description
Canceled

會得到一個表示貢獻者是否被取消的值

(繼承來源 DeploymentContributor)
CancellationToken

用來 CancellationToken 表示是否應該取消貢獻者的執行

(繼承來源 DeploymentContributor)

方法

名稱 Description
AddAfter(DeploymentPlanHandle, DeploymentStep, DeploymentStep)

提供一種透過在現有步驟後加上步驟來修改現有計畫的方法

AddBefore(DeploymentPlanHandle, DeploymentStep, DeploymentStep)

提供一種方式,讓子類別能在指定步驟後加入步驟來修改計畫

Cancel()

取消對貢獻者的執行

(繼承來源 DeploymentContributor)
Dispose()

Dispose() 繼承而來。

(繼承來源 DeploymentContributor)
Dispose(Boolean)

代表一個可以修改部署計畫的貢獻者

(繼承來源 DeploymentContributor)
OnApplyDeploymentConfiguration(DeploymentContributorContext, ICollection<DeploymentContributorConfigurationStream>)

這是 DacFx 部署過程中呼叫的,讓你的程式碼有機會從所提供的檔案中收集設定資訊。 方法結束後,所有溪流都會被處理掉。 需要從資料串流取得資料的貢獻者必須在此方法中讀取並快取資料——若在後續方法(如該 OnExecute(DeploymentPlanContributorContext) 方法)嘗試從資料串流讀取,將會失敗。

(繼承來源 DeploymentContributor)
OnEstablishDeploymentConfiguration(DeploymentContributorConfigurationSetup)

這是 DacFx 建置過程呼叫的,讓你的程式碼有機會修改部署設定。

(繼承來源 DeploymentContributor)
OnExecute(DeploymentPlanContributorContext)

由部署引擎呼叫,讓自訂貢獻者能執行他們獨特的任務

(繼承來源 DeploymentPlanContributor)
PublishMessage(ExtensibilityError)

向部署引擎發佈訊息。 部署引擎會處理並向消費者回報訊息。

(繼承來源 DeploymentContributor)
Remove(DeploymentPlanHandle, DeploymentStep)

提供一種方法,將指定步驟從計畫中移除

適用於