MethodImplAttribute Konstruktoren

Definition

Initialisiert eine neue Instanz der MethodImplAttribute-Klasse.

Überlädt

Name Beschreibung
MethodImplAttribute()

Initialisiert eine neue Instanz der MethodImplAttribute-Klasse.

MethodImplAttribute(Int16)

Initialisiert eine neue Instanz der MethodImplAttribute Klasse mit dem angegebenen MethodImplOptions Wert.

MethodImplAttribute(MethodImplOptions)

Initialisiert eine neue Instanz der MethodImplAttribute Klasse mit dem angegebenen MethodImplOptions Wert.

MethodImplAttribute()

Initialisiert eine neue Instanz der MethodImplAttribute-Klasse.

public:
 MethodImplAttribute();
public MethodImplAttribute();
Public Sub New ()

Gilt für:

MethodImplAttribute(Int16)

Initialisiert eine neue Instanz der MethodImplAttribute Klasse mit dem angegebenen MethodImplOptions Wert.

public:
 MethodImplAttribute(short value);
public MethodImplAttribute(short value);
new System.Runtime.CompilerServices.MethodImplAttribute : int16 -> System.Runtime.CompilerServices.MethodImplAttribute
Public Sub New (value As Short)

Parameter

value
Int16

Eine Bitmaske, die den gewünschten MethodImplOptions Wert darstellt, der Die Eigenschaften der attributten Methode angibt.

Gilt für:

MethodImplAttribute(MethodImplOptions)

Initialisiert eine neue Instanz der MethodImplAttribute Klasse mit dem angegebenen MethodImplOptions Wert.

public:
 MethodImplAttribute(System::Runtime::CompilerServices::MethodImplOptions methodImplOptions);
public MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions methodImplOptions);
new System.Runtime.CompilerServices.MethodImplAttribute : System.Runtime.CompilerServices.MethodImplOptions -> System.Runtime.CompilerServices.MethodImplAttribute
Public Sub New (methodImplOptions As MethodImplOptions)

Parameter

methodImplOptions
MethodImplOptions

Ein MethodImplOptions Wert, der Die Eigenschaften der attributten Methode angibt.

Hinweise

Dieser Konstruktor legt die CorMethodImpl Bitfelder in der Metadatentabelle fest. Der Wert dieser Flags kann zur Laufzeit abgerufen werden, indem die MethodInfo.GetMethodImplementationFlags Methode aufgerufen wird ConstructorInfo.GetMethodImplementationFlags .

Weitere Informationen

Gilt für: