Share via


Module Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Performs reflection on a module.

Inheritance Hierarchy

System.Object
  System.Reflection.Module
    System.Reflection.Emit.ModuleBuilder

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

Syntax

'Declaration
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
Public MustInherit Class Module _
    Implements ICustomAttributeProvider
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
public abstract class Module : ICustomAttributeProvider

The Module type exposes the following members.

Constructors

  Name Description
Protected method Module Initializes a new instance of the Module class.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Assembly Gets the appropriate Assembly for this instance of Module.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 FullyQualifiedName Gets a string representing the fully qualified name and path to this module.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 MetadataToken Gets a token that identifies the module in metadata.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Name Gets the name of the module with the path removed.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

In Silverlight for Windows Phone, this member is overridden by Equals(Object).

In XNA Framework, this member is overridden by Equals(Object).
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 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.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetCustomAttributes(Boolean) Returns all custom attributes.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetCustomAttributes(Type, Boolean) Returns custom attributes of the specified type.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetField(String) Returns the global field that has the specified name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetField(String, BindingFlags) Returns the global field that has the specified name and binding attributes.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFields() Returns the global fields defined on the module.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFields(BindingFlags) Returns the global fields that are defined on the module and that match the specified binding flags.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)

In Silverlight for Windows Phone, this member is overridden by GetHashCode().

In XNA Framework, this member is overridden by GetHashCode().
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethod(String) Returns the global method that has the specified name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethod(String, array<Type[]) Returns the global method that matches the specified name and parameter types.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethod(String, BindingFlags, Binder, CallingConventions, array<Type[], array<ParameterModifier[]) Returns the global method that has the specified name, binding information, calling convention, and parameter types and modifiers.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethodImpl In a derived class, provides the implementation for the GetMethod method overloads.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethods() Returns the global methods defined on the module.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethods(BindingFlags) Returns the global methods that are defined on the module and that match the specified binding flags.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType() Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType(String) Returns the specified type, performing a case-sensitive search.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType(String, Boolean) Returns the specified type, searching the module with the specified case sensitivity.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType(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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetTypes Returns all the types defined within this module.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsDefined Determines if the specified attribute type is applied to this module.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ResolveField(Int32) Returns the field identified by the specified metadata token.
Public method ResolveField(Int32, array<Type[], array<Type[]) Returns the field identified by the specified metadata token, in the context defined by the specified generic type parameters.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ResolveMethod(Int32) Returns the method or constructor that is identified by the specified metadata token.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ResolveMethod(Int32, array<Type[], array<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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ResolveString Returns the string that is identified by the specified metadata token.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ResolveType(Int32) Returns the type that is identified by the specified metadata token.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ResolveType(Int32, array<Type[], array<Type[]) Returns the type that is identified by the specified metadata token, in the context defined by the specified generic type parameters.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString Returns the name of the module. (Overrides Object.ToString().)

Top

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

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

See Also

Reference