DeploymentContributor.OnApplyDeploymentConfiguration メソッド

定義

指定されたファイルから構成情報を収集する機会をコードに提供するために、DacFx のデプロイ プロセスによって呼び出されます。 メソッドの最後に、すべてのストリームが破棄されます。 ストリームからデータを取得する必要がある共同作成者は、このメソッドの間にデータを読み取ってキャッシュする必要があります。 OnExecute(DeploymentPlanContributorContext) メソッドなどの後のメソッドでストリームから読み取ろうとすると失敗します。

protected virtual void OnApplyDeploymentConfiguration(Microsoft.SqlServer.Dac.Deployment.DeploymentContributorContext context, System.Collections.Generic.ICollection<Microsoft.SqlServer.Dac.Deployment.DeploymentContributorConfigurationStream> configurationStreams);
abstract member OnApplyDeploymentConfiguration : Microsoft.SqlServer.Dac.Deployment.DeploymentContributorContext * System.Collections.Generic.ICollection<Microsoft.SqlServer.Dac.Deployment.DeploymentContributorConfigurationStream> -> unit
override this.OnApplyDeploymentConfiguration : Microsoft.SqlServer.Dac.Deployment.DeploymentContributorContext * System.Collections.Generic.ICollection<Microsoft.SqlServer.Dac.Deployment.DeploymentContributorConfigurationStream> -> unit
Protected Overridable Sub OnApplyDeploymentConfiguration (context As DeploymentContributorContext, configurationStreams As ICollection(Of DeploymentContributorConfigurationStream))

パラメーター

例外

デプロイ プロセスの続行を停止する重大なエラーが発生した場合、共同作成者を実装すると、 DeploymentFailedExceptionがスローされる可能性があります。

適用対象