DeploymentContributor.OnApplyDeploymentConfiguration Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Chamado pelo processo de implantação no DacFx para dar ao seu código uma oportunidade de coletar informações de configuração dos arquivos fornecidos. No final do método, todos os fluxos serão descartados. Os colaboradores que precisam obter dados dos fluxos devem ler e armazenar em cache os dados durante esse método – as tentativas de ler do fluxo durante um método posterior, como o OnExecute(DeploymentPlanContributorContext) método, falharão.
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))
Parâmetros
- context
- DeploymentContributorContext
Um DeploymentContributorContext objeto
- configurationStreams
- ICollection<DeploymentContributorConfigurationStream>
Um ICollection<T> dos DeploymentContributorConfigurationStream objetos
Exceções
Se houver um erro crítico que deve impedir que o processo de implantação continue, a implementação de colaboradores poderá gerar um DeploymentFailedException.