DeploymentContributor::OnApplyDeploymentConfiguration Method (DeploymentContributorContext^, ICollection<DeploymentContributorConfigurationStream^>^)
SQL Server 2014
Updated: April 20, 2017
Called by the deployment process in DacFx to give your code an opportunity to collect configuration information from the provided files. At the end of the method all streams will be disposed. Contributors that need to obtain data from the streams must read and cache the data during this method - attempts to read from the stream during a later method such as the OnExecute method will fail.
Assembly: Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)
protected: virtual void OnApplyDeploymentConfiguration( DeploymentContributorContext^ context, ICollection<DeploymentContributorConfigurationStream^>^ configurationStreams )
Parameters
- context
-
Type:
Microsoft.SqlServer.Dac.Deployment::DeploymentContributorContext^
A DeploymentContributorContext object
- configurationStreams
-
Type:
System.Collections.Generic::ICollection<DeploymentContributorConfigurationStream^>^
An ICollection<T> of DeploymentContributorConfigurationStream objects
| Exception | Condition |
|---|---|
| DeploymentFailedException | If there is a critical error that should stop the deployment process from continuing, implementing contributors may throw a DeploymentFailedException. |
Community Additions
ADD
Show: