InstAPI.GetSvcBinPathByInstName メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定されたフレンドリーなインスタンス名でSQL Serverサービスのプログラムファイルrootディレクトリを取得します。
public:
static bool GetSvcBinPathByInstName(System::String ^ instanceName, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ directoryPath, System::UInt32 % bufferSize);
public static bool GetSvcBinPathByInstName(string instanceName, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder directoryPath, ref uint bufferSize);
static member GetSvcBinPathByInstName : string * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSvcBinPathByInstName (instanceName As String, product As SQL_SVCS, directoryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean
パラメーター
- product
- SQL_SVCS
SQLサービスです。
- directoryPath
- StringBuilder
パスを受信するためのバッファへのポインタ。
- bufferSize
- UInt32
バッファの長さを提供するDWORD値へのポインタです。 供給されたバッファが小さすぎる場合は、必要な長さを返します。
返品
true もしその呼びかけが成功した場合、それ以外は false。