InstAPI.GetSQLBinPathByInstID(INST_ID, StringBuilder, UInt32) メソッド

定義

指定したインスタンス ID によって、SQL Server サービスのプログラム ファイルのルート ディレクトリを取得します。

public:
 static bool GetSQLBinPathByInstID(Microsoft::SqlServer::INST_ID ^ instanceID, System::Text::StringBuilder ^ directoryPath, System::UInt32 % bufferSize);
public static bool GetSQLBinPathByInstID(Microsoft.SqlServer.INST_ID instanceID, System.Text.StringBuilder directoryPath, ref uint bufferSize);
static member GetSQLBinPathByInstID : Microsoft.SqlServer.INST_ID * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSQLBinPathByInstID (instanceID As INST_ID, directoryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean

パラメーター

instanceID
INST_ID

関連するインスタンスのインスタンス ID を指すポインター。

directoryPath
StringBuilder

パスを受け取るバッファーを指すポインター。

bufferSize
UInt32

バッファーの長さを指定する DWORD 値を指すポインター。 指定したバッファーが小さすぎる場合は、必要な長さを返します。

戻り値

呼び出しが成功した場合は true、それ以外の場合は false

適用対象