InstrumentationClassAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 InstrumentationClassAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| InstrumentationClassAttribute(InstrumentationType) |
若該類別的新實例是從具有該InstrumentationClassAttribute屬性的其他類型衍生而來,或是頂層的儀器類別(例如沒有基底類別的實例或抽象類別,或是從 InstrumentationClassAttribute 衍生的事件),則初始化該類別的新實例。 |
| InstrumentationClassAttribute(InstrumentationType, String) |
初始化一個擁有現有基底類別結構的類別新實例 InstrumentationClassAttribute 。 該類別必須包含現有 WMI 基底類別屬性的適當成員定義。 |
InstrumentationClassAttribute(InstrumentationType)
若該類別的新實例是從具有該InstrumentationClassAttribute屬性的其他類型衍生而來,或是頂層的儀器類別(例如沒有基底類別的實例或抽象類別,或是從 InstrumentationClassAttribute 衍生的事件),則初始化該類別的新實例。
public:
InstrumentationClassAttribute(System::Management::Instrumentation::InstrumentationType instrumentationType);
public InstrumentationClassAttribute(System.Management.Instrumentation.InstrumentationType instrumentationType);
new System.Management.Instrumentation.InstrumentationClassAttribute : System.Management.Instrumentation.InstrumentationType -> System.Management.Instrumentation.InstrumentationClassAttribute
Public Sub New (instrumentationType As InstrumentationType)
參數
- instrumentationType
- InstrumentationType
此級別所提供的儀器類型。
備註
.NET Framework 安全性
完全信任當下的來電者。 此成員無法被部分受信任的程式碼使用。 欲了解更多資訊,請參閱 「部分受信任程式碼的函式庫使用」。
適用於
InstrumentationClassAttribute(InstrumentationType, String)
初始化一個擁有現有基底類別結構的類別新實例 InstrumentationClassAttribute 。 該類別必須包含現有 WMI 基底類別屬性的適當成員定義。
public:
InstrumentationClassAttribute(System::Management::Instrumentation::InstrumentationType instrumentationType, System::String ^ managedBaseClassName);
public InstrumentationClassAttribute(System.Management.Instrumentation.InstrumentationType instrumentationType, string managedBaseClassName);
new System.Management.Instrumentation.InstrumentationClassAttribute : System.Management.Instrumentation.InstrumentationType * string -> System.Management.Instrumentation.InstrumentationClassAttribute
Public Sub New (instrumentationType As InstrumentationType, managedBaseClassName As String)
參數
- instrumentationType
- InstrumentationType
此級別所提供的儀器類型。
- managedBaseClassName
- String
基類的名稱。
備註
.NET Framework 安全性
完全信任當下的來電者。 此成員無法被部分受信任的程式碼使用。 欲了解更多資訊,請參閱 「部分受信任程式碼的函式庫使用」。