RuntimeReflectionExtensions.GetMethodInfo Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets an object that represents the method represented by the specified delegate.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

Syntax

<ExtensionAttribute> _
Public Shared Function GetMethodInfo ( _
    del As Delegate _
) As MethodInfo
public static MethodInfo GetMethodInfo(
    this Delegate del
)

Parameters

Return Value

Type: System.Reflection..::.MethodInfo
An object that represents the method.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Delegate. When you use instance method syntax to call this method, omit the first parameter.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

RuntimeReflectionExtensions Class

System.Reflection Namespace