Partager via


Classe DacActionValidator

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Dac
Assembly :  Microsoft.SqlServer.Management.Dac (en Microsoft.SqlServer.Management.Dac.dll)

Syntaxe

'Déclaration
Public NotInheritable Class DacActionValidator
'Utilisation
public static class DacActionValidator
public ref class DacActionValidator abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type DacActionValidator =  class end
public final class DacActionValidator

Le type DacActionValidator expose les membres suivants.

Méthodes

  Nom Description
Méthode publiqueMembre statique ValidateForInstall(ServerConnection, DacType) Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Méthode publiqueMembre statique ValidateForInstall(SqlStoreConnection, DacType) Obsolète. Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Méthode publiqueMembre statique ValidateForInstall(ServerConnection, DacType, Boolean) Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Méthode publiqueMembre statique ValidateForInstall(SqlStoreConnection, DacType, Boolean) Obsolète. 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éthode publiqueMembre statique ValidateForUninstall Validates that the specified instance of the Database Engine meets requirements for deleting the specified DAC isntance.
Méthode publiqueMembre statique 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éthode publiqueMembre statique 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.

Haut de la page

Notes

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.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.