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

Definizione

Recupera la directory radice del file di programma per uno specifico servizio in base al tipo di servizio e al nome descrittivo dell'istanza specificati.

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

Parametri

instanceName
String

Valore String che rappresenta il nome istanza.

product
SQL_SVCS

Servizio SQL.

directoryPath
StringBuilder

Un puntatore a un buffer per la ricezione del percorso.

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