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 值之一。

适用于

另请参阅