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


Метод Validate (SqlStoreConnection)

Примечание. Этот API-интерфейс устарел. Его действующая альтернатива — Validate(ServerConnection).

Validates that the specified instance of the Database Engine is able to be used as a DAC store.

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

Синтаксис

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

returnValue = ServerDeploymentValidator.Validate(connection)
[ObsoleteAttribute]
public static DeploymentValidationException Validate(
    SqlStoreConnection connection
)
[ObsoleteAttribute]
public:
static DeploymentValidationException^ Validate(
    SqlStoreConnection^ connection
)
[<ObsoleteAttribute>]
static member Validate : 
        connection:SqlStoreConnection -> DeploymentValidationException 
public static function Validate(
    connection : SqlStoreConnection
) : DeploymentValidationException

Параметры

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

Тип: Microsoft.SqlServer.Management.Dac. . :: . .DeploymentValidationException
A DeploymentValidationException exception describing the detected validation problems. If validation was successful, this method will return nullNothingnullptrunitпустая ссылка (Nothing в Visual Basic).