UnmanagedFunctionPointerAttribute(CallingConvention) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe UnmanagedFunctionPointerAttribute avec la convention d'appel spécifiée.
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)
Paramètres
- callingConvention
- CallingConvention
Convention d'appel spécifiée.
Remarques
Cette méthode spécifie la convention d’appel pour le délégué dans du code non managé et est l’utilisation la plus courante de l’attribut UnmanagedFunctionPointerAttribute . Vous pouvez définir le paramètre sur callingConvention
l’une des valeurs de l’énumération CallingConvention .
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour