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 的特定登錄檔字串值。

適用於