SystemdHelpers.IsSystemdService 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.
Vérifie si le processus actuel est hébergé en tant que service système.
public:
static bool IsSystemdService();
public static bool IsSystemdService();
static member IsSystemdService : unit -> bool
Public Shared Function IsSystemdService () As Boolean
Retours
true si le processus actuel est hébergé en tant que service système ; sinon, false.