InstAPI.GetSvcBinPathByID(INST_ID, SQL_SVCS, StringBuilder, UInt32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據指定服務類型與實例 ID 取得特定服務的程式檔案根目錄。
public:
static bool GetSvcBinPathByID(Microsoft::SqlServer::INST_ID ^ instanceID, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ directoryPath, System::UInt32 % bufferSize);
public static bool GetSvcBinPathByID(Microsoft.SqlServer.INST_ID instanceID, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder directoryPath, ref uint bufferSize);
static member GetSvcBinPathByID : Microsoft.SqlServer.INST_ID * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSvcBinPathByID (instanceID As INST_ID, product As SQL_SVCS, directoryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean
參數
- instanceID
- INST_ID
指向相關實例的實例 ID 指標。
- product
- SQL_SVCS
SQL 服務。
- directoryPath
- StringBuilder
一個指向緩衝區的指標,用來接收路徑。
- bufferSize
- UInt32
一個指向 DWORD 值的指標,用以提供緩衝區的長度。 若緩衝區太小,則回傳所需長度。
傳回
true若呼叫成功;否則,。 false