ServerDeploymentValidator.Validate Method
Validates that the specified instance of the Database Engine is able to be used as a DAC store.
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)
Syntax
'Déclaration
Public Shared Function Validate ( _
connection As ServerConnection _
) As DeploymentValidationException
'Utilisation
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
Parameters
- connection
Type: Microsoft.SqlServer.Management.Common.ServerConnection
A ServerConnection object that contains connection information about the instance of the Database Engine to be validated.
Return Value
Type: Microsoft.SqlServer.Management.Dac.DeploymentValidationException
A DeploymentValidationException exception describing the detected validation problems. If validation was successful, this method will return null reference (Nothing in Visual Basic).