Compartilhar via


InstrumentationManager.RegisterType(Type) Método

Definição

Registra uma classe com a infraestrutura de 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)

Parâmetros

managementType
Type

O tipo da classe.

Exemplos

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

Aplica-se a