InstAPI.GetSvcInstRootDirPathByName Méthode

Définition

Récupère la racine du chemin d'accès au 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

Valeur String qui représente le nom de l'instance.

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 à