Język

InstrumentationClassAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy InstrumentationClassAttribute.

Przeciążenia

Nazwa Opis
InstrumentationClassAttribute(InstrumentationType)

Inicjuje nowe wystąpienie klasy, która jest używana, jeśli ten typ pochodzi z innego typu, który ma InstrumentationClassAttribute atrybut, lub jeśli jest to klasa instrumentacji najwyższego poziomu (na przykład wystąpienie InstrumentationClassAttribute lub klasa abstrakcyjna bez klasy bazowej lub zdarzenie pochodzące z __ExtrinsicEvent).

InstrumentationClassAttribute(InstrumentationType, String)

Inicjuje InstrumentationClassAttribute nowe wystąpienie klasy, która ma schemat dla istniejącej klasy bazowej. Klasa musi zawierać odpowiednie definicje składowe dla właściwości istniejącej klasy bazowej usługi WMI.

InstrumentationClassAttribute(InstrumentationType)

Inicjuje nowe wystąpienie klasy, która jest używana, jeśli ten typ pochodzi z innego typu, który ma InstrumentationClassAttribute atrybut, lub jeśli jest to klasa instrumentacji najwyższego poziomu (na przykład wystąpienie InstrumentationClassAttribute lub klasa abstrakcyjna bez klasy bazowej lub zdarzenie pochodzące z __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)

Parametry

instrumentationType
InstrumentationType

Typ instrumentacji dostarczony przez tę klasę.

Uwagi

Zabezpieczenia programu .NET Framework

Pełne zaufanie dla bezpośredniego obiektu wywołującego. Tego elementu członkowskiego nie można używać przez częściowo zaufany kod. Aby uzyskać więcej informacji, zobacz Using Libraries from Partially Trusted Code (Używanie bibliotek z częściowo zaufanego kodu).

Dotyczy

InstrumentationClassAttribute(InstrumentationType, String)

Inicjuje InstrumentationClassAttribute nowe wystąpienie klasy, która ma schemat dla istniejącej klasy bazowej. Klasa musi zawierać odpowiednie definicje składowe dla właściwości istniejącej klasy bazowej usługi 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)

Parametry

instrumentationType
InstrumentationType

Typ instrumentacji dostarczony przez tę klasę.

managedBaseClassName
String

Nazwa klasy bazowej.

Uwagi

Zabezpieczenia programu .NET Framework

Pełne zaufanie dla bezpośredniego obiektu wywołującego. Tego elementu członkowskiego nie można używać przez częściowo zaufany kod. Aby uzyskać więcej informacji, zobacz Using Libraries from Partially Trusted Code (Używanie bibliotek z częściowo zaufanego kodu).

Dotyczy