UnmanagedFunctionPointerAttribute(CallingConvention) Konstruktor

Definice

Inicializuje novou instanci UnmanagedFunctionPointerAttribute třídy se zadanou konvencí volání.

public:
 UnmanagedFunctionPointerAttribute(System::Runtime::InteropServices::CallingConvention callingConvention);
public UnmanagedFunctionPointerAttribute (System.Runtime.InteropServices.CallingConvention callingConvention);
new System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute : System.Runtime.InteropServices.CallingConvention -> System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute
Public Sub New (callingConvention As CallingConvention)

Parametry

callingConvention
CallingConvention

Zadaná konvence volání.

Poznámky

Tato metoda určuje konvenci volání pro delegáta v nespravovaném kódu a je nejběžnějším použitím atributu UnmanagedFunctionPointerAttribute . Parametr můžete nastavit callingConvention na jednu z hodnot ve výčtu CallingConvention .

Platí pro

Viz také