InstAPI.GetInstRegPathByName(String, SQL_SVCS, StringBuilder, UInt32) Método

Definição

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

instanceName
String

Um valor que representa o nome da String instância.

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.

Aplica-se a