InstAPI.GetSQLInstanceRegStringByID Metodo

Definizione

Recupera una stringa del Registro di sistema da uno specifico albero del Registro di sistema dell'istanza in base all'ID istanza specificato, al sottoalbero e al nome del valore.

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

Parametri

instanceID
INST_ID

Puntatore all'ID dell'istanza specifica.

registryPath
String

Un puntatore a un buffer per la ricezione del percorso del Registro di sistema.

valueName
String

Valore String che contiene il nome del valore da recuperare.

data
StringBuilder

Un puntatore a un buffer per ricevere la stringa da recuperare.

bufferSize
UInt32

Un puntatore a un valore DWORD per fornire la lunghezza del buffer. Restituisce la lunghezza obbligatoria se il buffer fornito è troppo piccolo.

Restituisce

true se la chiamata ha avuto esito positivo; in caso contrario, false.

Si applica a