InstAPI.GetSQLBinPathByInstID(INST_ID, StringBuilder, UInt32) Méthode

Définition

Récupère le répertoire racine du fichier du programme pour le service SQL Server avec l’identifiant d’instance donné.

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

Paramètres

instanceID
INST_ID

Un pointeur vers l’ID d’instance de l’instance concernée.

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.

S’applique à