Bagikan melalui


InstrumentationManager.RegisterType(Type) Metode

Definisi

Mendaftarkan kelas dengan infrastruktur 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)

Parameter

managementType
Type

Jenis kelas .

Contoh

static int Main(string[] args)
{
   InstrumentationManager.RegisterType(typeof(MySampleProvider));
   return 0;
}

Berlaku untuk