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.
Inscrit une classe auprès de 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;
}