共用方式為


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

定義

警告

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

取得執行階段產生的函式指標,該函式會從 Unmanaged 程式碼將呼叫封送處理至 Managed 程式碼。

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

參數

pfnMethodToWrap
IntPtr

nativeint

要封送處理的方法的指標。

pbSignature
IntPtr

nativeint

方法簽章的指標。

cbSignature
Int32

pbSignature 中的位元組數目。

傳回

IntPtr

nativeint

函式指標,會從 pfnMethodToWrap 將呼叫封送處理至 Managed 程式碼。

屬性

備註

GetUnmanagedThunkForManagedMethodPtr 只會針對編譯程式支持公開。

適用於