Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Module Class

July 28, 2014

Performs reflection on a module.

System.Object
  System.Reflection.Module

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

public abstract class Module : ICustomAttributeProvider

The Module type exposes the following members.

  NameDescription
Public propertyAssemblyGets the appropriate Assembly for this instance of Module.
Public propertyCustomAttributesGets a collection that contains this module's custom attributes.
Public propertyFullyQualifiedNameGets a string representing the fully qualified name and path to this module.
Public propertyMetadataTokenGets a token that identifies the module in metadata.
Public propertyNameGets the name of the module with the path removed.
Top

  NameDescription
Public methodEqualsDetermines whether this module and the specified object are equal. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetCustomAttributes(Boolean)Returns all custom attributes.
Public methodGetCustomAttributes(Type, Boolean)Returns custom attributes of the specified type.
Public methodGetField(String)Returns the global field that has the specified name.
Public methodGetField(String, BindingFlags)Returns the global field that has the specified name and binding attributes.
Public methodGetFields()Returns the global fields defined on the module.
Public methodGetFields(BindingFlags)Returns the global fields that are defined on the module and that match the specified binding flags.
Public methodGetHashCodeReturns the hash code for this instance. (Overrides Object.GetHashCode().)
Public methodGetMethod(String)Returns the global method that has the specified name.
Public methodGetMethod(String, Type[])Returns the global method that matches the specified name and parameter types.
Public methodGetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])Returns the global method that has the specified name, binding information, calling convention, and parameter types and modifiers.
Protected methodGetMethodImplIn a derived class, provides the implementation for the GetMethod method overloads.
Public methodGetMethods()Returns the global methods defined on the module.
Public methodGetMethods(BindingFlags)Returns the global methods that are defined on the module and that match the specified binding flags.
Public methodGetType()Gets the Type of the current instance. (Inherited from Object.)
Public methodGetType(String)Returns the specified type, performing a case-sensitive search.
Public methodGetType(String, Boolean)Returns the specified type, searching the module with the specified case sensitivity.
Public methodGetType(String, Boolean, Boolean)Returns the specified type, specifying whether to make a case-sensitive search of the module and whether to throw an exception if the type cannot be found.
Public methodGetTypesReturns all the types defined within this module.
Public methodIsDefinedDetermines if the specified attribute type is applied to this module.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResolveMethod(Int32)Returns the method or constructor that is identified by the specified metadata token.
Public methodResolveMethod(Int32, Type[], Type[])Returns the method or constructor that is identified by the specified metadata token, in the context defined by the specified generic type parameters.
Public methodResolveStringReturns the string that is identified by the specified metadata token.
Public methodResolveType(Int32)Returns the type that is identified by the specified metadata token.
Public methodResolveType(Int32, Type[], Type[])Returns the type that is identified by the specified metadata token, in the context defined by the specified generic type parameters.
Public methodToStringReturns the name of the module. (Overrides Object.ToString().)
Top

  NameDescription
Public Extension MethodGetCustomAttribute(Type)Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified module. (Defined by CustomAttributeExtensions.)
Public Extension MethodGetCustomAttribute<T>()Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified module. (Defined by CustomAttributeExtensions.)
Public Extension MethodGetCustomAttributes()Overloaded. Retrieves a collection of custom attributes that are applied to a specified module. (Defined by CustomAttributeExtensions.)
Public Extension MethodGetCustomAttributes(Type)Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified module. (Defined by CustomAttributeExtensions.)
Public Extension MethodGetCustomAttributes<T>()Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified module. (Defined by CustomAttributeExtensions.)
Public Extension MethodIsDefinedIndicates whether custom attributes of a specified type are applied to a specified module. (Defined by CustomAttributeExtensions.)
Top

A module is a portable executable file, such as type.dll or application.exe, consisting of one or more classes and interfaces. There may be multiple namespaces contained in a single module, and a namespace may span multiple modules.

NoteNote:

A .NET Framework module is not the same as a module in Visual Basic, which is used by a programmer to organize functions and subroutines in an application.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2014 Microsoft