Marshal.GetManagedThunkForUnmanagedMethodPtr(IntPtr, IntPtr, Int32) 方法

定義

警告

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

它會獲得一個指向執行時產生的函式指標,該函式將呼叫從受管理程式碼編入非受管理程式碼。

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

參數

pfnMethodToWrap
IntPtr

nativeint

這是給執法官的方法指引。

pbSignature
IntPtr

nativeint

一個指向方法簽名的指標。

cbSignature
Int32

中位元組 pbSignature的數量。

傳回

IntPtr

nativeint

一個指向函式的指標,該函式會將呼叫從參數 pfnMethodToWrap 的指令傳送到非受管理程式碼。

屬性

備註

GetManagedThunkForUnmanagedMethodPtr 僅供編譯器支援。

適用於