Condividi tramite


Marshal.GetUnmanagedThunkForManagedMethodPtr(IntPtr, IntPtr, Int32) Metodo

Definizione

Attenzione

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

Ottiene un puntatore a una funzione generata a runtime che esegue il marshalling di una chiamata da codice non gestito a codice gestito.

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

Parametri

pfnMethodToWrap
IntPtr

nativeint

Puntatore al metodo di cui effettuare il marshalling.

pbSignature
IntPtr

nativeint

Puntatore alla firma del metodo.

cbSignature
Int32

Numero di byte in pbSignature.

Restituisce

IntPtr

nativeint

Puntatore a una funzione che eseguirà il marshalling di una chiamata da pfnMethodToWrap al codice gestito.

Attributi

Commenti

GetUnmanagedThunkForManagedMethodPtr viene esposto solo per il supporto del compilatore.

Si applica a