次の方法で共有


InstrumentationManager.RegisterType(Type) メソッド

定義

クラスを 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)

パラメーター

managementType
Type

クラスの型。

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

適用対象