DacFx で配置プロセスによって呼び出され、コードは、指定されたファイルから構成情報を収集できます。 メソッドの最後で、すべてのストリームが破棄されます。 ストリームからデータを取得する必要のあるコントリビューターは、このメソッドの実行中にデータを読み取り、キャッシュする必要があります。OnExecute(DeploymentPlanContributorContext) メソッドなど、後のメソッドの実行中にストリームから読み取ろうとすると失敗します。
名前空間: Microsoft.SqlServer.Dac.Deployment
アセンブリ: Microsoft.SqlServer.Dac.Extensions (Microsoft.SqlServer.Dac.Extensions.dll)
構文
'宣言
Protected Overridable Sub OnApplyDeploymentConfiguration ( _
context As DeploymentContributorContext, _
configurationStreams As ICollection(Of DeploymentContributorConfigurationStream) _
)
'使用
Dim context As DeploymentContributorContext
Dim configurationStreams As ICollection(Of DeploymentContributorConfigurationStream)
Me.OnApplyDeploymentConfiguration(context, _
configurationStreams)
protected virtual void OnApplyDeploymentConfiguration(
DeploymentContributorContext context,
ICollection<DeploymentContributorConfigurationStream> configurationStreams
)
protected:
virtual void OnApplyDeploymentConfiguration(
DeploymentContributorContext^ context,
ICollection<DeploymentContributorConfigurationStream^>^ configurationStreams
)
abstract OnApplyDeploymentConfiguration :
context:DeploymentContributorContext *
configurationStreams:ICollection<DeploymentContributorConfigurationStream> -> unit
override OnApplyDeploymentConfiguration :
context:DeploymentContributorContext *
configurationStreams:ICollection<DeploymentContributorConfigurationStream> -> unit
protected function OnApplyDeploymentConfiguration(
context : DeploymentContributorContext,
configurationStreams : ICollection<DeploymentContributorConfigurationStream>
)
パラメーター
- context
型: Microsoft.SqlServer.Dac.Deployment.DeploymentContributorContext
DeploymentContributorContext オブジェクトです。
- configurationStreams
型: System.Collections.Generic.ICollection<DeploymentContributorConfigurationStream>
DeploymentContributorConfigurationStream オブジェクトの ICollection<T> です。
例外
| 例外 | 条件 |
|---|---|
| DeploymentFailedException | 配置プロセスの続行を停止する重大なエラーが発生する場合、コントリビューターを実装すると DeploymentFailedException がスローされる可能性があります。 |