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 仅公开编译器支持。

适用于