DeploymentContributor.OnApplyDeploymentConfiguration 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
由 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))
参数
- configurationStreams
- ICollection<DeploymentContributorConfigurationStream>
例外
如果出现严重错误,应阻止部署过程继续,则实现参与者可能会引发错误 DeploymentFailedException。