Marshal.GetManagedThunkForUnmanagedMethodPtr(IntPtr, IntPtr, Int32) Metodo

Definizione

Attenzione

The GetManagedThunkForUnmanagedMethodPtr 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 gestito a codice non gestito.

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

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 alla funzione che effettuerà il marshalling di una chiamata dal parametro pfnMethodToWrap a codice non gestito.

Attributi

Commenti

GetManagedThunkForUnmanagedMethodPtr viene esposto solo per il supporto del compilatore.

Si applica a