UnmanagedFunctionPointerAttribute(CallingConvention) Konstruktor
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.