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

定义

注意

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

获取指向运行时生成的函数的指针,该函数将调用从非托管代码封送到托管代码。

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 封送到托管代码。

属性

注解

GetUnmanagedThunkForManagedMethodPtr 公开仅用于编译器支持。

适用于