Compartir a través de


ValidateForUninstall Método

Validates that the specified instance of the Database Engine meets requirements for deleting the specified DAC isntance.

Espacio de nombres:  Microsoft.SqlServer.Management.Dac
Ensamblado:  Microsoft.SqlServer.Management.Dac (en Microsoft.SqlServer.Management.Dac.dll)

Sintaxis

'Declaración
Public Shared Function ValidateForUninstall ( _
    dacInstance As DacInstance, _
    uninstallMode As DacUninstallMode _
) As DeploymentValidationException
'Uso
Dim dacInstance As DacInstance
Dim uninstallMode As DacUninstallMode
Dim returnValue As DeploymentValidationException

returnValue = DacActionValidator.ValidateForUninstall(dacInstance, _
    uninstallMode)
public static DeploymentValidationException ValidateForUninstall(
    DacInstance dacInstance,
    DacUninstallMode uninstallMode
)
public:
static DeploymentValidationException^ ValidateForUninstall(
    DacInstance^ dacInstance, 
    DacUninstallMode uninstallMode
)
static member ValidateForUninstall : 
        dacInstance:DacInstance * 
        uninstallMode:DacUninstallMode -> DeploymentValidationException 
public static function ValidateForUninstall(
    dacInstance : DacInstance, 
    uninstallMode : DacUninstallMode
) : DeploymentValidationException

Parámetros

Valor devuelto

Tipo: Microsoft.SqlServer.Management.Dac. . :: . .DeploymentValidationException
Returns null if the validation was successful. Otherwise, returns a DeploymentValidationException object reporting the issues encountered.

Comentarios

The ValidateForUninstall method verifies conditions such as having a valid connection to an instance of the Database Engine and that the current login has sufficient permissions.