Langue

InstAPI.GetSvcInstRootDirPathByName Méthode

Définition

Récupère la racine du chemin du répertoire pour une instance SQL spécifique par le nom d’instance convivial donné.

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

Paramètres

instanceName
String

Une valeur qui représente le nom de String l’instance.

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.

S’applique à