UnmanagedFunctionPointerAttribute(CallingConvention) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the UnmanagedFunctionPointerAttribute class with the specified calling convention.
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)
Parameters
- callingConvention
- CallingConvention
The specified calling convention.
Remarks
This method specifies the calling convention for the delegate in unmanaged code and is the most common use of the UnmanagedFunctionPointerAttribute attribute. You can set the callingConvention
parameter to one of the values in the CallingConvention enumeration.