MethodInfo Members
This page is specific to:.NET Framework Version:
.NET Framework Class Library
MethodInfo Members

Discovers the attributes of a method and provides access to method metadata.

The MethodInfo type exposes the following members.

Constructors

  NameDescription
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMethodInfoInitializes a new instance of the MethodInfo class.
Top
Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetBaseDefinitionWhen 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.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetCustomAttributesOverloaded. When overridden in a derived class, returns custom attributes applied to this member.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetGenericArgumentsReturns 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()()().)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetGenericMethodDefinitionReturns a MethodInfo object that represents a generic method definition from which the current method can be constructed.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetMethodBodyWhen overridden in a derived class, gets a MethodBody object that provides access to the MSIL stream, local variables, and exceptions for the current method. (Inherited from MethodBase.)
Public methodGetMethodImplementationFlagsWhen overridden in a derived class, returns the MethodImplAttributes flags. (Inherited from MethodBase.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetParametersWhen overridden in a derived class, gets the parameters of the specified method or constructor. (Inherited from MethodBase.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInvokeOverloaded. Invokes the method or constructor reflected by this MethodInfo instance.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsDefinedWhen 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.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMakeGenericMethodSubstitutes 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.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringReturns a String that represents the current Object. (Inherited from Object.)
Top
Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkAttributesGets the attributes associated with this method. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkCallingConventionGets a value indicating the calling conventions for this method. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkContainsGenericParametersGets a value indicating whether a generic method contains unassigned generic type parameters. (Overrides MethodBase..::.ContainsGenericParameters.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkDeclaringTypeGets the class that declares this member. (Inherited from MemberInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsAbstractGets a value indicating whether the method is abstract. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsAssemblyGets a value indicating whether the potential visibility of this method or constructor is described by MethodAttributes..::.Assembly; that is, the method or constructor is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsConstructorGets a value indicating whether the method is a constructor. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsFamilyGets a value indicating whether the visibility of this method or constructor is described by MethodAttributes..::.Family; that is, the method or constructor is visible only within its class and derived classes. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsFamilyAndAssemblyGets a value indicating whether the visibility of this method or constructor is described by MethodAttributes..::.FamANDAssem; that is, the method or constructor can be called by derived classes, but only if they are in the same assembly. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsFamilyOrAssemblyGets a value indicating whether the potential visibility of this method or constructor is described by MethodAttributes..::.FamORAssem; that is, the method or constructor can be called by derived classes wherever they are, and by classes in the same assembly. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsFinalGets a value indicating whether this method is final. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsGenericMethodGets a value indicating whether the current method is a generic method. (Overrides MethodBase..::.IsGenericMethod.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsGenericMethodDefinitionGets a value indicating whether the current MethodInfo represents the definition of a generic method. (Overrides MethodBase..::.IsGenericMethodDefinition.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsHideBySigGets a value indicating whether only a member of the same kind with exactly the same signature is hidden in the derived class. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsPrivateGets a value indicating whether this member is private. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsPublicGets a value indicating whether this is a public method. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsSpecialNameGets a value indicating whether this method has a special name. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsStaticGets a value indicating whether the method is static. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsVirtualGets a value indicating whether the method is virtual. (Inherited from MethodBase.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberTypeGets a MemberTypes value indicating that this member is a method. (Overrides MemberInfo..::.MemberType.)
Public propertyMetadataTokenGets a value that identifies a metadata element. (Inherited from MemberInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkMethodHandleGets a handle to the internal metadata representation of a method. (Inherited from MethodBase.)
Public propertyModuleGets the module in which the type that declares the member represented by the current MemberInfo is defined. (Inherited from MemberInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkNameGets the name of the current member. (Inherited from MemberInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkReflectedTypeGets the class object that was used to obtain this instance of MemberInfo. (Inherited from MemberInfo.)
Public propertyReturnParameterGets a ParameterInfo object that contains information about the return type of the method, such as whether the return type has custom modifiers.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkReturnTypeGets the return type of this method.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkReturnTypeCustomAttributesGets the custom attributes for the return type.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate method_MemberInfo..::.GetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers. (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MethodBase..::.GetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers. (Inherited from MethodBase.)
Explicit interface implemetationPrivate method_MethodInfo..::.GetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implemetationPrivate method_MemberInfo..::.GetTypeGets a Type object representing the MemberInfo class. (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MethodBase..::.GetTypeProvides COM objects with version-independent access to the GetType()()() method. (Inherited from MethodBase.)
Explicit interface implemetationPrivate method_MethodInfo..::.GetTypeProvides access to the GetType method from COM.
Explicit interface implemetationPrivate method_MemberInfo..::.GetTypeInfoRetrieves the type information for an object, which can then be used to get the type information for an interface. (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MethodBase..::.GetTypeInfoRetrieves the type information for an object, which can then be used to get the type information for an interface. (Inherited from MethodBase.)
Explicit interface implemetationPrivate method_MethodInfo..::.GetTypeInfoRetrieves the type information for an object, which can be used to get the type information for an interface.
Explicit interface implemetationPrivate method_MemberInfo..::.GetTypeInfoCountRetrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MethodBase..::.GetTypeInfoCountRetrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from MethodBase.)
Explicit interface implemetationPrivate method_MethodInfo..::.GetTypeInfoCountRetrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implemetationPrivate method_MemberInfo..::.InvokeProvides access to properties and methods exposed by an object. (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MethodBase..::.InvokeProvides access to properties and methods exposed by an object. (Inherited from MethodBase.)
Explicit interface implemetationPrivate method_MethodInfo..::.InvokeProvides access to properties and methods exposed by an object.
Explicit interface implemetationPrivate property_MethodBase..::.IsAbstractProvides COM objects with version-independent access to the IsAbstract property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsAssemblyProvides COM objects with version-independent access to the IsAssembly property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsConstructorProvides COM objects with version-independent access to the IsConstructor property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsFamilyProvides COM objects with version-independent access to the IsFamily property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsFamilyAndAssemblyProvides COM objects with version-independent access to the IsFamilyAndAssembly property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsFamilyOrAssemblyProvides COM objects with version-independent access to the IsFamilyOrAssembly property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsFinalProvides COM objects with version-independent access to the IsFinal property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsHideBySigProvides COM objects with version-independent access to the IsHideBySig property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsPrivateProvides COM objects with version-independent access to the IsPrivate property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsPublicProvides COM objects with version-independent access to the IsPublic property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsSpecialNameProvides COM objects with version-independent access to the IsSpecialName property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsStaticProvides COM objects with version-independent access to the IsStatic property. (Inherited from MethodBase.)
Explicit interface implemetationPrivate property_MethodBase..::.IsVirtualProvides COM objects with version-independent access to the IsVirtual property. (Inherited from MethodBase.)
Top
See Also

Reference

© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View