Method Handle. Get Function Pointer Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Obtains a pointer to the method represented by this instance.
public: IntPtr GetFunctionPointer();
public IntPtr GetFunctionPointer ();
[System.Security.SecurityCritical] public IntPtr GetFunctionPointer ();
member this.GetFunctionPointer : unit -> nativeint
[<System.Security.SecurityCritical>] member this.GetFunctionPointer : unit -> nativeint
Public Function GetFunctionPointer () As IntPtr
A pointer to the method represented by this instance.
The caller does not have the necessary permission to perform this operation.
The returned IntPtr is meant for internal runtime usage and should not be used to call the function from native code. Use Marshal.GetFunctionPointerForDelegate in order to get a function pointer that can be passed to native code.