语言

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 的注册表字符串值。

适用于