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
参数
- connection
类型:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SqlStoreConnection
A SqlStoreConnection object that contains connection information about 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).