Partager via


InstrumentationManager.RegisterType(Type) Méthode

Définition

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 à