Επεξεργασία

Κοινή χρήση μέσω


InstrumentationClassAttribute Constructors

Definition

Initializes a new instance of the InstrumentationClassAttribute class.

Overloads

InstrumentationClassAttribute(InstrumentationType)

Initializes a new instance of the InstrumentationClassAttribute class that is used if this type is derived from another type that has the InstrumentationClassAttribute attribute, or if this is a top-level instrumentation class (for example, an instance or abstract class without a base class, or an event derived from __ExtrinsicEvent).

InstrumentationClassAttribute(InstrumentationType, String)

Initializes a new instance of the InstrumentationClassAttribute class that has schema for an existing base class. The class must contain proper member definitions for the properties of the existing WMI base class.

InstrumentationClassAttribute(InstrumentationType)

Initializes a new instance of the InstrumentationClassAttribute class that is used if this type is derived from another type that has the InstrumentationClassAttribute attribute, or if this is a top-level instrumentation class (for example, an instance or abstract class without a base class, or an event derived from __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)

Parameters

instrumentationType
InstrumentationType

The type of instrumentation provided by this class.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to

InstrumentationClassAttribute(InstrumentationType, String)

Initializes a new instance of the InstrumentationClassAttribute class that has schema for an existing base class. The class must contain proper member definitions for the properties of the existing WMI base class.

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)

Parameters

instrumentationType
InstrumentationType

The type of instrumentation provided by this class.

managedBaseClassName
String

The name of the base class.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to