InstAPI.GetSvcInstanceRegStringByName Metodo

Definizione

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

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

Parametri

instanceName
String

Valore String che rappresenta il nome istanza.

product
SQL_SVCS

Servizio SQL.

registryPath
String

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

valueName
String

Una stringa 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