Marshal.GetUnmanagedThunkForManagedMethodPtr(IntPtr, IntPtr, Int32) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
nativeint
Penunjuk ke fungsi yang akan melakukan marshal panggilan dari pfnMethodToWrap
ke kode terkelola.
- Atribut
Keterangan
GetUnmanagedThunkForManagedMethodPtr hanya diekspos untuk dukungan pengkompilasi.