MethodInfo Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The MethodInfo type exposes the following members.
| Name | Description | |
|---|---|---|
|
CreateDelegate(Type) | Creates a delegate of the specified type from this method. |
|
CreateDelegate(Type, Object) | Creates a delegate of the specified type with the specified target from this method. |
|
Equals | Returns a value that indicates whether this instance is equal to a specified object. (Overrides MethodBase.Equals(Object).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetBaseDefinition | When overridden in a derived class, returns the MethodInfo object for the method on the direct or indirect base class in which the method represented by this instance was first declared. |
|
GetCustomAttributes(Boolean) | When overridden in a derived class, returns an array of all custom attributes applied to this member. (Inherited from MemberInfo.) |
|
GetCustomAttributes(Type, Boolean) | When overridden in a derived class, returns an array of custom attributes applied to this member and identified by Type. (Inherited from MemberInfo.) |
|
GetGenericArguments | Returns an array of Type objects that represent the type arguments of a generic method or the type parameters of a generic method definition. (Overrides MethodBase.GetGenericArguments.) |
|
GetGenericMethodDefinition | Returns a MethodInfo object that represents a generic method definition from which the current method can be constructed. |
|
GetHashCode | Returns the hash code for this instance. (Overrides MethodBase.GetHashCode.) |
|
GetMethodImplementationFlags | When overridden in a derived class, returns the MethodImplAttributes flags. (Inherited from MethodBase.) |
|
GetParameters | When overridden in a derived class, gets the parameters of this method or constructor. (Inherited from MethodBase.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Invoke(Object, Object()) | Invokes the method or constructor represented by the current instance, using the specified parameters. (Inherited from MethodBase.) |
|
Invoke(Object, BindingFlags, Binder, Object(), CultureInfo) | When overridden in a derived class, invokes the reflected method or constructor with the given parameters. (Inherited from MethodBase.) |
|
IsDefined | When overridden in a derived class, indicates whether one or more attributes of the specified type or of its derived types is applied to this member. (Inherited from MemberInfo.) |
|
MakeGenericMethod | Substitutes the elements of an array of types for the type parameters of the current generic method definition, and returns a MethodInfo object representing the resulting constructed method. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
GetCustomAttribute(Type) | Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member. (Defined by CustomAttributeExtensions.) |
|
GetCustomAttribute(Type, Boolean) | Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. (Defined by CustomAttributeExtensions.) |
|
GetCustomAttribute(Of T) | Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member. (Defined by CustomAttributeExtensions.) |
|
GetCustomAttribute(Of T)(Boolean) | Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. (Defined by CustomAttributeExtensions.) |
|
GetCustomAttributes | Overloaded. Retrieves a collection of custom attributes that are applied to a specified member. (Defined by CustomAttributeExtensions.) |
|
GetCustomAttributes(Type) | Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified member. (Defined by CustomAttributeExtensions.) |
|
GetCustomAttributes(Of T) | Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified member. (Defined by CustomAttributeExtensions.) |
|
GetCustomAttributes(Of T)(Boolean) | Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member. (Defined by CustomAttributeExtensions.) |
|
GetRuntimeBaseDefinition | Retrieves an object that represents the specified method on the direct or indirect base class where the method was first declared. (Defined by RuntimeReflectionExtensions.) |
|
IsDefined | Indicates whether custom attributes of a specified type are applied to a specified member. (Defined by CustomAttributeExtensions.) |
Show: