InstrumentationClassAttribute 建構函式

定義

初始化 InstrumentationClassAttribute 類別的新執行個體。

多載

InstrumentationClassAttribute(InstrumentationType)

初始化 類別的新實例,這個實例 InstrumentationClassAttribute 如果這個型別衍生自具有 InstrumentationClassAttribute 屬性的另一個型別,或如果這是最上層檢測類別, (例如,沒有基類的實例或抽象類,或是衍生自 __ExtrinsicEvent) 的事件。

InstrumentationClassAttribute(InstrumentationType, String)

初始化具有現存基底類別結構描述 (Schema) 的 InstrumentationClassAttribute 類別的新執行個體。 該類別必須包含現有 WMI 基底類別屬性的適當成員定義。

InstrumentationClassAttribute(InstrumentationType)

初始化 類別的新實例,這個實例 InstrumentationClassAttribute 如果這個型別衍生自具有 InstrumentationClassAttribute 屬性的另一個型別,或如果這是最上層檢測類別, (例如,沒有基類的實例或抽象類,或是衍生自 __ExtrinsicEvent) 的事件。

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)

初始化具有現存基底類別結構描述 (Schema) 的 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 安全性

完全信任立即呼叫者。 這個成員無法供部分信任的程式碼使用。 如需詳細資訊,請參閱 使用部分信任程式代碼的連結庫

適用於