InstAPI.GetSvcBinPathByInstName Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère le répertoire racine du fichier du programme pour le service SQL Server avec le nom d’instance compatible donné.
public:
static bool GetSvcBinPathByInstName(System::String ^ instanceName, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ directoryPath, System::UInt32 % bufferSize);
public static bool GetSvcBinPathByInstName(string instanceName, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder directoryPath, ref uint bufferSize);
static member GetSvcBinPathByInstName : string * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSvcBinPathByInstName (instanceName As String, product As SQL_SVCS, directoryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Paramètres
- product
- SQL_SVCS
Le service SQL.
- directoryPath
- StringBuilder
Un pointeur vers un tampon pour recevoir le chemin.
- bufferSize
- UInt32
Un pointeur vers une valeur DWORD pour fournir la longueur du tampon. Restitue la longueur requise si le tampon fourni est trop petit.
Retours
true si l’appel réussissait ; sinon, false.