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 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour