Bagikan melalui


Marshal.GetManagedThunkForUnmanagedMethodPtr(IntPtr, IntPtr, Int32) Metode

Definisi

Perhatian

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

Mendapatkan penunjuk ke fungsi yang dihasilkan runtime yang melakukan marshal panggilan dari kode terkelola ke tidak terkelola.

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

Parameter

pfnMethodToWrap
IntPtr

nativeint

Penunjuk ke metode untuk marshal.

pbSignature
IntPtr

nativeint

Penunjuk ke tanda tangan metode.

cbSignature
Int32

Jumlah byte dalam pbSignature.

Mengembalikan

IntPtr

nativeint

Penunjuk ke fungsi yang akan melakukan marshal panggilan dari pfnMethodToWrap parameter ke kode yang tidak dikelola.

Atribut

Keterangan

GetManagedThunkForUnmanagedMethodPtr hanya diekspos untuk dukungan kompilator.

Berlaku untuk