UnmanagedFunctionPointerAttribute(CallingConvention) Constructor

Definitie

Initialiseert een nieuw exemplaar van de UnmanagedFunctionPointerAttribute klasse met de opgegeven aanroepconventie.

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

De opgegeven oproepconventie.

Opmerkingen

Met deze methode wordt de aanroepconventie voor de gemachtigde opgegeven in niet-beheerde code en wordt het UnmanagedFunctionPointerAttribute kenmerk het meest gebruikt. U kunt de callingConvention parameter instellen op een van de waarden in de CallingConvention opsomming.

Van toepassing op

Zie ook