InstAPI.GetSvcInstRootRegPathByName 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 la racine du chemin du registre pour une instance SQL spécifique avec le nom d’instance convivial donné.
public:
static bool GetSvcInstRootRegPathByName(System::String ^ instanceName, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ registryPath, System::UInt32 % bufferSize);
public static bool GetSvcInstRootRegPathByName(string instanceName, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder registryPath, ref uint bufferSize);
static member GetSvcInstRootRegPathByName : string * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSvcInstRootRegPathByName (instanceName As String, product As SQL_SVCS, registryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Paramètres
- product
- SQL_SVCS
Le service SQL.
- registryPath
- StringBuilder
Un pointeur vers un tampon pour recevoir le chemin du registre.
- 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.