语言

InstrumentationClassAttribute 构造函数

定义

初始化 InstrumentationClassAttribute 类的新实例。

重载

名称 说明
InstrumentationClassAttribute(InstrumentationType)

初始化此类型派生自具有InstrumentationClassAttribute特性的另一个类型时使用的类的新实例InstrumentationClassAttribute,或者如果这是顶级检测类(例如,没有基类的实例或抽象类或派生自__ExtrinsicEvent的事件)。

InstrumentationClassAttribute(InstrumentationType, String)

初始化具有现有基类架构的 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)

初始化具有现有基类架构的 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 安全性

直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库。

适用于