InstAPI.GetSQLBinPathByInstID(INST_ID, StringBuilder, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据给定的实例 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
。