MethodImplAttribute Konstruktory

Definice

Inicializuje novou instanci MethodImplAttribute třídy .

Přetížení

MethodImplAttribute()

Inicializuje novou instanci MethodImplAttribute třídy .

MethodImplAttribute(Int16)

Inicializuje novou instanci MethodImplAttribute třídy se zadanou MethodImplOptions hodnotou.

MethodImplAttribute(MethodImplOptions)

Inicializuje novou instanci MethodImplAttribute třídy se zadanou MethodImplOptions hodnotou.

MethodImplAttribute()

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

Inicializuje novou instanci MethodImplAttribute třídy .

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

Platí pro

MethodImplAttribute(Int16)

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

Inicializuje novou instanci MethodImplAttribute třídy se zadanou MethodImplOptions hodnotou.

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

Parametry

value
Int16

Bitová maska představující požadovanou MethodImplOptions hodnotu, která určuje vlastnosti metody s atributem.

Platí pro

MethodImplAttribute(MethodImplOptions)

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

Inicializuje novou instanci MethodImplAttribute třídy se zadanou MethodImplOptions hodnotou.

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)

Parametry

methodImplOptions
MethodImplOptions

Hodnota MethodImplOptions určující vlastnosti metody s atributem.

Poznámky

Tento konstruktor nastaví bitová CorMethodImpl pole v tabulce metadat. Hodnotu těchto příznaků lze načíst za běhu voláním MethodInfo.GetMethodImplementationFlags metody nebo ConstructorInfo.GetMethodImplementationFlags .

Viz také

Platí pro