Compartilhar via


Classe DacActionValidator

Validates that the requirements of the DAC action (install, upgrade, or uninstall) are in place.

Hierarquia de herança

System. . :: . .Object
  Microsoft.SqlServer.Management.Dac..::..DacActionValidator

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (em Microsoft.SqlServer.Management.Dac.dll)

Sintaxe

'Declaração
Public NotInheritable Class DacActionValidator
'Uso
public static class DacActionValidator
public ref class DacActionValidator abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type DacActionValidator =  class end
public final class DacActionValidator

O tipo DacActionValidator expõe os membros a seguir.

Métodos

  Nome Descrição
Método públicoMembro estático ValidateForInstall(ServerConnection, DacType) Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Método públicoMembro estático ValidateForInstall(SqlStoreConnection, DacType) Obsoleto. Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Método públicoMembro estático ValidateForInstall(ServerConnection, DacType, Boolean) Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Método públicoMembro estático ValidateForInstall(SqlStoreConnection, DacType, Boolean) Obsoleto. Validates that the specified connection credentials meet the requirements for installing the specified DAC type, and, optionally, whether the instance of the Database Engine meets the requirements.
Método públicoMembro estático ValidateForUninstall Validates that the specified instance of the Database Engine meets requirements for deleting the specified DAC isntance.
Método públicoMembro estático ValidateForUpgrade(DacInstance, DacInstance) Validates that the specified installed DAC instance and it's host instance of the Database Engine meet the requirements for upgrading the installed DAC instance to a new version of the same DAC type.
Método públicoMembro estático ValidateForUpgrade(DacInstance, DacInstance, Boolean) Validates that the specified installed DAC instance and it's host instance of the Database Engine meet the requirements for upgrading the installed DAC instance to a new version of the same DAC type.

Início

Comentários

The DacAction class verifies conditions such as having a valid connection to an instance of the Database Engine and that the current login has sufficient permissions. For an upgrade or uninstall, it also verifies that the current DAC instance can support the action.

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