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수 있습니다.