InstAPI.GetVerSpecificRootRegPath(StringBuilder, UInt32) 方法

定义

检索 SQL Server 的特定于版本(非特定于实例)的注册表根目录。

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

参数

registryPath
StringBuilder

一个指向用于接收注册表路径的缓冲区的指针。

bufferSize
UInt32

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

返回

如果调用成功,则为 true;否则为 false

适用于