InstAPI.GetSQLServiceByID(INST_ID, 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 SQL Service par ID spécifié.
public:
static bool GetSQLServiceByID(Microsoft::SqlServer::INST_ID ^ instanceID, Microsoft::SqlServer::SQL_SVCS product, System::Text::StringBuilder ^ serviceName, System::UInt32 % bufferSize);
public static bool GetSQLServiceByID(Microsoft.SqlServer.INST_ID instanceID, Microsoft.SqlServer.SQL_SVCS product, System.Text.StringBuilder serviceName, ref uint bufferSize);
static member GetSQLServiceByID : Microsoft.SqlServer.INST_ID * Microsoft.SqlServer.SQL_SVCS * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSQLServiceByID (instanceID As INST_ID, product As SQL_SVCS, serviceName As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Paramètres
- instanceID
- INST_ID
Une valeur spécifiée pour l’ID de l’instance.
- product
- SQL_SVCS
Le service SQL.
- serviceName
- StringBuilder
Une entrée de chaîne pour ServiceName.
- 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 le service SQL est trié par ID ; sinon, false.