語言

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;
}

適用於