InstAPI.GetSvcInstRootRegPathByName Método

Definición

Recupera la raíz de la ruta de acceso del Registro para una instancia SQL concreta por el nombre descriptivo de la instancia dado.

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

Parámetros

instanceName
String

Valor String que representa el nombre de instancia.

product
SQL_SVCS

Servicio SQL.

registryPath
StringBuilder

Puntero a un búfer para recibir la ruta de acceso del Registro.

bufferSize
UInt32

Puntero a un valor DWORD para proporcionar la longitud del búfer. Devuelve la longitud requerida si el búfer proporcionado es demasiado pequeño.

Devoluciones

true, si la llamada se ejecutó correctamente; de lo contrario, false.

Se aplica a