InstAPI.GetSQLServiceByName(String, SQL_SVCS, StringBuilder, UInt32) 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.
Utilise une expression booléenne pour trier le service SQL par nom spécifié.
public:
static bool GetSQLServiceByName(System::String ^ instanceName, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ serviceName, System::UInt32 % bufferSize);
public static bool GetSQLServiceByName(string instanceName, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder serviceName, ref uint bufferSize);
static member GetSQLServiceByName : string * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSQLServiceByName (instanceName As String, product As SQL_SVCS, serviceName As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Paramètres
- product
- SQL_SVCS
Service SQL.
- serviceName
- StringBuilder
Entrée de chaîne pour ServiceName.
- 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 le service SQL est trié par nom ; sinon, false.