Table of Contents

Class MetadataMethodInfo

Namespace
Microsoft.Samples.Debugging.CorMetadata
Assembly
corapi.dll
public sealed class MetadataMethodInfo : MethodInfo, ICustomAttributeProvider, _MemberInfo, _MethodBase, _MethodInfo
Inheritance
MetadataMethodInfo
Implements

Properties

Attributes

Gets the attributes associated with this method.

DeclaringType

Type that the method is declared in.

MetadataToken

Metadata token for this method. Be sure to use this in the proper scope.

MethodHandle

Gets a handle to the internal metadata representation of a method.

Name

Name of the Method, not including the class name.

ReflectedType

Gets the class object that was used to obtain this instance of MemberInfo.

ReturnType

Gets the return type of this method.

ReturnTypeCustomAttributes

Gets the custom attributes for the return type.

Methods

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(bool)

When overridden in a derived class, returns an array of all custom attributes applied to this member.

GetCustomAttributes(Type, bool)

When overridden in a derived class, returns an array of custom attributes applied to this member and identified by Type.

GetGenericArgumentNames()
GetMethodImplementationFlags()

When overridden in a derived class, returns the MethodImplAttributes flags.

GetParameters()

When overridden in a derived class, gets the parameters of the specified method or constructor.

HasCustomAttribute(string)

Does the function have the custom attribute on it.

Invoke(object, BindingFlags, Binder, object[], CultureInfo)

When overridden in a derived class, invokes the reflected method or constructor with the given parameters.

IsDefined(Type, bool)

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.