InstAPI.GetSQLBinPathByInstID(INST_ID, StringBuilder, UInt32) Metodo

Definizione

Recupera la directory radice del file del programma per il servizio SQL Server con l'ID di istanza indicato.

public:
 static bool GetSQLBinPathByInstID(Microsoft::SqlServer::INST_ID ^ instanceID, System::Text::StringBuilder ^ directoryPath, System::UInt32 % bufferSize);
public static bool GetSQLBinPathByInstID(Microsoft.SqlServer.INST_ID instanceID, System.Text.StringBuilder directoryPath, ref uint bufferSize);
static member GetSQLBinPathByInstID : Microsoft.SqlServer.INST_ID * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSQLBinPathByInstID (instanceID As INST_ID, directoryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean

Parametri

instanceID
INST_ID

Un puntatore all'ID dell'istanza dell'istanza rilevante.

directoryPath
StringBuilder

Un puntatore a un buffer per ricevere il percorso.

bufferSize
UInt32

Un puntatore a un valore DWORD per fornire la lunghezza del buffer. Restituisce la lunghezza richiesta se il buffer fornito è troppo piccolo.

Valori restituiti

true se la chiamata aveva successo; altrimenti, false.

Si applica a