语言

InstAPI.GetInstRootDirPathByID(INST_ID, StringBuilder, UInt32) 方法

定义

通过给定实例 ID 获取特定 SQL 实例的目录路径根。

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

参数

instanceID
INST_ID

指向相关实例的实例ID的指针。

directoryPath
StringBuilder

指向缓冲区的指针,用于接收目录路径。

bufferSize
UInt32

一个指向DWORD值的指针,用于提供缓冲区的长度。 如果缓冲区太小,则返回所需长度。

返回

true如果叫牌成功;否则,。 false

适用于