Bagikan melalui


Marshal.GetUnmanagedThunkForManagedMethodPtr(IntPtr, IntPtr, Int32) Metode

Definisi

Perhatian

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

Mendapatkan penunjuk ke fungsi yang dihasilkan runtime yang marshals panggilan dari tidak dikelola ke kode terkelola.

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

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 ke kode terkelola.

Atribut

Keterangan

GetUnmanagedThunkForManagedMethodPtr hanya diekspos untuk dukungan pengkompilasi.

Berlaku untuk