InstAPI.GetSvcInstanceRegStringByName 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 une chaîne de Registre à partir de l'arborescence de Registre spécifique à l'instance par le nom d'instance convivial donné, la sous-arborescence et le nom de la valeur.
public:
static bool GetSvcInstanceRegStringByName(System::String ^ instanceName, Microsoft::SqlServer::SQL_SVCS product, System::String ^ registryPath, System::String ^ valueName, System::Text::StringBuilder ^ data, System::UInt32 % bufferSize);
public static bool GetSvcInstanceRegStringByName (string instanceName, Microsoft.SqlServer.SQL_SVCS product, string registryPath, string valueName, System.Text.StringBuilder data, ref uint bufferSize);
static member GetSvcInstanceRegStringByName : string * Microsoft.SqlServer.SQL_SVCS * string * string * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSvcInstanceRegStringByName (instanceName As String, product As SQL_SVCS, registryPath As String, valueName As String, data As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Paramètres
- product
- SQL_SVCS
Service SQL.
- registryPath
- String
Pointeur vers une mémoire tampon destinée à recevoir le chemin d'accès au Registre.
- valueName
- String
Chaîne qui contient le nom de valeur à récupérer.
- data
- StringBuilder
Pointeur vers une mémoire tampon destinée à recevoir la chaîne qui sera récupérée.
- 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
.