InstAPI.GetInstRegPathByName(String, SQL_SVCS, StringBuilder, UInt32) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Recupera o caminho do registro para uma instância SQL específica e serviço pelo nome de instância amigável dado.
public:
static bool GetInstRegPathByName(System::String ^ instanceName, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ registryPath, System::UInt32 % bufferSize);
public static bool GetInstRegPathByName(string instanceName, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder registryPath, ref uint bufferSize);
static member GetInstRegPathByName : string * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetInstRegPathByName (instanceName As String, product As SQL_SVCS, registryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Parâmetros
- product
- SQL_SVCS
O serviço SQL.
- registryPath
- StringBuilder
Um apontador para um buffer para receber o caminho do registro.
- bufferSize
- UInt32
Um ponteiro para um valor DWORD para fornecer o comprimento do buffer. Retorna o comprimento necessário se o buffer fornecido for muito pequeno.
Retornos
true se a decisão fosse bem-sucedida; caso contrário, false.