UnmanagedFunctionPointerAttribute(CallingConvention) Конструктор

Определение

Инициализирует новый экземпляр UnmanagedFunctionPointerAttribute класса с указанным соглашением о вызовах.

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)

Параметры

callingConvention
CallingConvention

Указанное соглашение о вызовах.

Комментарии

Этот метод задает соглашение о вызове делегата в неуправляемом коде и является наиболее распространенным использованием атрибута UnmanagedFunctionPointerAttribute . Параметр можно задать callingConvention для одного из значений перечисления CallingConvention .

Применяется к

См. также раздел