DeploymentContributorConfigurationStream 클래스
Represents a streamable version of a configuration file that is used by DacFx in the deployment and build processes. These streams enable deployment extensions to enhance and extend the design and deployment experience. Input configuration files can be defined in a .sqlproj file as part of the MSBuild process. The files are treated as streams, and will be passed to contributors via the EstablishDeploymentConfiguration(DeploymentContributorConfigurationSetup) method, where they can be copied as outputs that are stored in the generated dacpac. These streams will then be made available in the ApplyDeploymentConfiguration(DeploymentContributorContext, ICollectionDeploymentContributorConfigurationStream), where they can be consumed for configuration and data during deployment. At the end of the ApplyDeploymentConfiguration(DeploymentContributorContext, ICollectionDeploymentContributorConfigurationStream) 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 the OnExecute(DeploymentPlanContributorContext) method will fail. Inside a .sqproj file, Deployment Configuration files are specified as follows:
<ItemGroup> <DeploymentExtensionConfiguration Include="MyContributorName.MyFileName1.sql" /> <DeploymentExtensionConfiguration Include="MyContributorName.MyFileName2.sql" /> </ItemGroup>
Note that configuration streams are accessible to all contributors. Contributors may employ a file naming pattern to identify which input files related to that contributor.
상속 계층
System.Object
Microsoft.SqlServer.Dac.Deployment.DeploymentContributorConfigurationStream
네임스페이스: Microsoft.SqlServer.Dac.Deployment
어셈블리: Microsoft.SqlServer.Dac.Extensions(Microsoft.SqlServer.Dac.Extensions.dll)
구문
‘선언
Public NotInheritable Class DeploymentContributorConfigurationStream
‘사용 방법
Dim instance As DeploymentContributorConfigurationStream
public sealed class DeploymentContributorConfigurationStream
public ref class DeploymentContributorConfigurationStream sealed
[<SealedAttribute>]
type DeploymentContributorConfigurationStream = class end
public final class DeploymentContributorConfigurationStream
DeploymentContributorConfigurationStream 유형에서 다음 멤버를 표시합니다.
생성자
이름 | 설명 | |
---|---|---|
DeploymentContributorConfigurationStream | Creates an instance of the DeploymentContributorConfigurationStream |
맨 위로 이동
속성
이름 | 설명 | |
---|---|---|
Filename | The filename used to represent this stream |
맨 위로 이동
메서드
이름 | 설명 | |
---|---|---|
Equals | (Object에서 상속됨) | |
GetHashCode | (Object에서 상속됨) | |
GetStream | Gets the Stream | |
GetType | (Object에서 상속됨) | |
ToString | (Object에서 상속됨) |
맨 위로 이동
스레드 보안
이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.