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 .

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

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