UnmanagedFunctionPointerAttribute(CallingConvention) Konstruktor

Definition

Initierar en ny instans av UnmanagedFunctionPointerAttribute klassen med den angivna anropskonventionen.

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)

Parametrar

callingConvention
CallingConvention

Den angivna anropskonventionen.

Kommentarer

Den här metoden anger anropskonventionen för ombudet i ohanterad kod och är den vanligaste användningen av UnmanagedFunctionPointerAttribute attributet. Du kan ange parametern callingConvention till ett av värdena i CallingConvention uppräkningen.

Gäller för

Se även