InstrumentationManager.RegisterType(Type) 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.
Enregistre une classe avec l'infrastructure WMI.
public:
static void RegisterType(Type ^ managementType);
public static void RegisterType (Type managementType);
static member RegisterType : Type -> unit
Public Shared Sub RegisterType (managementType As Type)
Paramètres
- managementType
- Type
Type de la classe.
Exemples
static int Main(string[] args)
{
InstrumentationManager.RegisterType(typeof(MySampleProvider));
return 0;
}
S’applique à
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner des problèmes et des demandes de tirage (pull requests). Pour plus d’informations, consultez notre guide du contributeur.