RuntimeMethodHandle.GetFunctionPointer RuntimeMethodHandle.GetFunctionPointer RuntimeMethodHandle.GetFunctionPointer RuntimeMethodHandle.GetFunctionPointer Method

Definition

Obtains a pointer to the method represented by this instance.

public:
 IntPtr GetFunctionPointer();
[System.Security.SecurityCritical]
public IntPtr GetFunctionPointer ();
member this.GetFunctionPointer : unit -> nativeint
Public Function GetFunctionPointer () As IntPtr

Returns

A pointer to the method represented by this instance.

Exceptions

The caller does not have the necessary permission to perform this operation.

Remarks

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.

Security

SecurityCriticalAttribute
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to