InstAPI.GetSvcBinPathByID(INST_ID, SQL_SVCS, StringBuilder, UInt32) Méthode

Définition

Récupère le répertoire racine des fichiers programme pour un service spécifique par le type de service et l'ID d'instance donnés.

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

Paramètres

instanceID
INST_ID

Pointeur vers l'ID d'instance de l'instance appropriée.

product
SQL_SVCS

Service SQL.

directoryPath
StringBuilder

Pointeur vers une mémoire tampon destinée à recevoir le chemin d'accès.

bufferSize
UInt32

Pointeur vers une valeur DWORD destinée à fournir la longueur de la mémoire tampon. Retourne la longueur requise si la mémoire tampon fournie est trop petite.

Retours

true si l'appel a réussi ; sinon, false.

S’applique à