InstAPI.GetSvcInstRootRegPathByName(String, SQL_SVCS, StringBuilder, UInt32) Metodo

Definizione

Recupera la radice del percorso del Registro di sistema per un'istanza SQL specifica in base al nome descrittivo dell'istanza specificato.

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

Parametri

instanceName
String

Valore String che rappresenta il nome istanza.

product
SQL_SVCS

Servizio SQL.

registryPath
StringBuilder

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

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

Boolean

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

Si applica a