Partager via


Marshal.GetManagedThunkForUnmanagedMethodPtr(IntPtr, IntPtr, Int32) Méthode

Définition

Attention

The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.

Obtient un pointeur vers une fonction générée par runtime qui marshale un appel du code managé à du code non managé.

public:
 static IntPtr GetManagedThunkForUnmanagedMethodPtr(IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature);
public static IntPtr GetManagedThunkForUnmanagedMethodPtr (IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature);
[System.Obsolete("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)]
public static IntPtr GetManagedThunkForUnmanagedMethodPtr (IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature);
[System.Obsolete("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)]
[System.Security.SecurityCritical]
public static IntPtr GetManagedThunkForUnmanagedMethodPtr (IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature);
static member GetManagedThunkForUnmanagedMethodPtr : nativeint * nativeint * int -> nativeint
[<System.Obsolete("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)>]
static member GetManagedThunkForUnmanagedMethodPtr : nativeint * nativeint * int -> nativeint
[<System.Obsolete("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)>]
[<System.Security.SecurityCritical>]
static member GetManagedThunkForUnmanagedMethodPtr : nativeint * nativeint * int -> nativeint
Public Shared Function GetManagedThunkForUnmanagedMethodPtr (pfnMethodToWrap As IntPtr, pbSignature As IntPtr, cbSignature As Integer) As IntPtr

Paramètres

pfnMethodToWrap
IntPtr

nativeint

Pointeur vers la méthode à marshaler.

pbSignature
IntPtr

nativeint

Pointeur vers la signature de la méthode.

cbSignature
Int32

Nombre d'octets dans pbSignature.

Retours

IntPtr

nativeint

Pointeur vers la fonction qui doit marshaler un appel du paramètre pfnMethodToWrap vers du code non managé.

Attributs

Remarques

GetManagedThunkForUnmanagedMethodPtr est exposé pour la prise en charge du compilateur uniquement.

S’applique à