Поделиться через


Метод ValidateForInstall (SqlStoreConnection, DacType, Boolean)

Примечание. Этот API-интерфейс устарел.

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.

Пространство имен:  Microsoft.SqlServer.Management.Dac
Сборка:  Microsoft.SqlServer.Management.Dac (в Microsoft.SqlServer.Management.Dac.dll)

Синтаксис

'Декларация
<ObsoleteAttribute> _
Public Shared Function ValidateForInstall ( _
    connection As SqlStoreConnection, _
    dacType As DacType, _
    skipServerValidation As Boolean _
) As DeploymentValidationException
'Применение
Dim connection As SqlStoreConnection
Dim dacType As DacType
Dim skipServerValidation As Boolean
Dim returnValue As DeploymentValidationException

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

Параметры

Возвращаемое значение

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

Замечания

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.