Langue

InstAPI.GetSvcInstanceRegStringByName Méthode

Définition

Récupère une chaîne de registre à partir d’un arbre spécifique à l’instance grâce au nom d’instance friendly donné, au sous-arbre et au 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

instanceName
String

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

product
SQL_SVCS

Le service SQL.

registryPath
String

Un pointeur vers un tampon pour recevoir le chemin du registre.

valueName
String

Une chaîne contenant le nom de la valeur à récupérer.

data
StringBuilder

Un pointeur vers un tampon pour recevoir la chaîne qui sera récupérée.

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 à