InstAPI.GetSQLDataRootByInstName(String, StringBuilder, UInt32) メソッド

定義

指定したインスタンスの表示名によって、SQL データ ファイルのルート ディレクトリを取得します。

public:
 static bool GetSQLDataRootByInstName(System::String ^ instanceName, System::Text::StringBuilder ^ directoryPath, System::UInt32 % bufferSize);
public static bool GetSQLDataRootByInstName(string instanceName, System.Text.StringBuilder directoryPath, ref uint bufferSize);
static member GetSQLDataRootByInstName : string * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSQLDataRootByInstName (instanceName As String, directoryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean

パラメーター

instanceName
String

インスタンス名を表す String 値。

directoryPath
StringBuilder

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

bufferSize
UInt32

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

戻り値

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

適用対象