Compartir a través de


ValidateForInstall Método (ServerConnection, DacType, Boolean)

Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.

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

Sintaxis

'Declaración
Public Shared Function ValidateForInstall ( _
    connection As ServerConnection, _
    dacType As DacType, _
    skipServerValidation As Boolean _
) As DeploymentValidationException
'Uso
Dim connection As ServerConnection
Dim dacType As DacType
Dim skipServerValidation As Boolean
Dim returnValue As DeploymentValidationException

returnValue = DacActionValidator.ValidateForInstall(connection, _
    dacType, skipServerValidation)
public static DeploymentValidationException ValidateForInstall(
    ServerConnection connection,
    DacType dacType,
    bool skipServerValidation
)
public:
static DeploymentValidationException^ ValidateForInstall(
    ServerConnection^ connection, 
    DacType^ dacType, 
    bool skipServerValidation
)
static member ValidateForInstall : 
        connection:ServerConnection * 
        dacType:DacType * 
        skipServerValidation:bool -> DeploymentValidationException 
public static function ValidateForInstall(
    connection : ServerConnection, 
    dacType : DacType, 
    skipServerValidation : boolean
) : DeploymentValidationException

Parámetros

  • skipServerValidation
    Tipo: System. . :: . .Boolean
    A Boolean specifying whether server validation should be skipped. Specify true to skip server validation, false otherwise.

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 ValidateForInstall method verifies conditions such as having a valid connection to an instance of the Database Engine and that the current login has sufficient permissions.