InstrumentationManager.RegisterType(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
向 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;
}