共用方式為


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

適用於