Udostępnij za pośrednictwem


Marshal.GetUnmanagedThunkForManagedMethodPtr(IntPtr, IntPtr, Int32) Metoda

Definicja

Przestroga

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

Pobiera wskaźnik do funkcji wygenerowanej przez środowisko uruchomieniowe, która marshaluje wywołanie z niezarządzanego do kodu zarządzanego.

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

Parametry

pfnMethodToWrap
IntPtr

nativeint

Wskaźnik do metody do marshalingu.

pbSignature
IntPtr

nativeint

Wskaźnik do podpisu metody.

cbSignature
Int32

Liczba bajtów w elemecie pbSignature.

Zwraca

IntPtr

nativeint

Wskaźnik do funkcji, która będzie marshalować wywołanie z pfnMethodToWrap do kodu zarządzanego.

Atrybuty

Uwagi

GetUnmanagedThunkForManagedMethodPtr jest uwidoczniony tylko w przypadku obsługi kompilatora.

Dotyczy