UnmanagedFunctionPointerAttribute(CallingConvention) Konstruktor

Definicja

Inicjuje UnmanagedFunctionPointerAttribute nowe wystąpienie klasy z określoną konwencją wywoływania.

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

Określona konwencja wywoływania.

Uwagi

Ta metoda określa konwencję wywoływania delegata w kodzie niezarządzanym i jest najczęstszym użyciem atrybutu UnmanagedFunctionPointerAttribute . Parametr można ustawić callingConvention na jedną z wartości w wyliczeń CallingConvention .

Dotyczy

Zobacz też