ValidateForInstall メソッド (ServerConnection, DacType)
指定されたデータベース エンジンのインスタンスが、指定された DAC 型をインストールするための要件を満たしているかどうかを検証します。
名前空間: Microsoft.SqlServer.Management.Dac
アセンブリ: Microsoft.SqlServer.Management.Dac (Microsoft.SqlServer.Management.Dac.dll)
構文
'宣言
Public Shared Function ValidateForInstall ( _
connection As ServerConnection, _
dacType As DacType _
) As DeploymentValidationException
'使用
Dim connection As ServerConnection
Dim dacType As DacType
Dim returnValue As DeploymentValidationException
returnValue = DacActionValidator.ValidateForInstall(connection, _
dacType)
public static DeploymentValidationException ValidateForInstall(
ServerConnection connection,
DacType dacType
)
public:
static DeploymentValidationException^ ValidateForInstall(
ServerConnection^ connection,
DacType^ dacType
)
static member ValidateForInstall :
connection:ServerConnection *
dacType:DacType -> DeploymentValidationException
public static function ValidateForInstall(
connection : ServerConnection,
dacType : DacType
) : DeploymentValidationException
パラメーター
- connection
型: Microsoft.SqlServer.Management.Common. . :: . .ServerConnection
DAC インスタンスのインストール先となるデータベース エンジンのインスタンスへの接続を表す ServerConnection オブジェクトです。
- dacType
型: Microsoft.SqlServer.Management.Dac. . :: . .DacType
DAC インスタンスを作成するのに使用する DAC 型を指定する DacType オブジェクトです。
戻り値
型: Microsoft.SqlServer.Management.Dac. . :: . .DeploymentValidationException
検証に成功した場合は、NULL を返します。それ以外の場合は、問題が発生したことを報告する DeploymentValidationException オブジェクトを返します。
説明
ValidateForInstall メソッドは、データベース エンジンのインスタンスへの接続が有効であることや、現在のログインに十分な権限があることなどの条件を検証します。