InstAPI.GetSQLVerSpecificRegString 方法

定义

指示 SQL Server 的特定注册表字符串值。

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

参数

registryPath
String

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

valueName
String

一个表示值名称的 String 值。

stringData
StringBuilder

一个提供字符串值的字符串输入。

bufferSize
UInt32

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

返回

SQL Server 的特定注册表字符串值。

适用于