Partilhar via


Classe DeploymentContributor

Represents the base class for deployment contributors. Subclasses of this class participate in a deployment by modifying a deployment plan or by executing the plan.

Hierarquia de herança

System.Object
  Microsoft.SqlServer.Dac.Deployment.DeploymentContributor
    Microsoft.SqlServer.Dac.Deployment.DeploymentPlanContributor

Namespace:  Microsoft.SqlServer.Dac.Deployment
Assembly:  Microsoft.SqlServer.Dac.Extensions (em Microsoft.SqlServer.Dac.Extensions.dll)

Sintaxe

'Declaração
Public MustInherit Class DeploymentContributor _
    Implements IDisposable
'Uso
Dim instance As DeploymentContributor
public abstract class DeploymentContributor : IDisposable
public ref class DeploymentContributor abstract : IDisposable
[<AbstractClassAttribute>]
type DeploymentContributor =  
    class 
        interface IDisposable 
    end
public abstract class DeploymentContributor implements IDisposable

O tipo DeploymentContributor expõe os membros a seguir.

Construtores

  Nome Descrição
Método protegido DeploymentContributor Initializes a new instance of the DeploymentContributor class.

Início

Propriedades

  Nome Descrição
Propriedade protegida Canceled Gets a value that indicates whether the contributor was canceled.
Propriedade protegida CancellationToken Gets the CancellationToken used to indicate whether contributor execution should be canceled.

Início

Métodos

  Nome Descrição
Método público Cancel Cancels execution of the contributor.
Método público Dispose() Releases all resources used by the current instance of the DeploymentContributor class.
Método protegido Dispose(Boolean) Releases the unmanaged resources used by the DeploymentContributor and optionally releases the managed resources.
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método protegido OnApplyDeploymentConfiguration Indicates a member 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(DeploymentPlanContributorContext) method will fail.
Método protegido OnEstablishDeploymentConfiguration Indicates a member called by the build process in DacFx to give your code an opportunity to modify deployment configuration.
Método protegido PublishMessage Publishes a message to the deployment engine. The deployment engine will process and report the message to consumers.
Método público ToString (Herdado de Object.)

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Dac.Deployment