DeploymentPlanContributor 類別

定義

代表部署過程的貢獻者

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

建構函式

名稱 Description
DeploymentPlanContributor()

代表部署過程的貢獻者

屬性

名稱 Description
Canceled

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

(繼承來源 DeploymentContributor)
CancellationToken

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

(繼承來源 DeploymentContributor)

方法

名稱 Description
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)

適用於