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 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing).