Метод 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)
Синтаксис
'Декларация
Public Shared Function Validate ( _
connection As ServerConnection _
) As DeploymentValidationException
'Применение
Dim connection As ServerConnection
Dim returnValue As DeploymentValidationException
returnValue = ServerDeploymentValidator.Validate(connection)
public static DeploymentValidationException Validate(
ServerConnection connection
)
public:
static DeploymentValidationException^ Validate(
ServerConnection^ connection
)
static member Validate :
connection:ServerConnection -> DeploymentValidationException
public static function Validate(
connection : ServerConnection
) : DeploymentValidationException
Параметры
- connection
Тип: Microsoft.SqlServer.Management.Common. . :: . .ServerConnection
A ServerConnection object that contains connection information about the instance of the Database Engine to be validated.
Возвращаемое значение
Тип: 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).