Module Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Performs reflection on a module.
Assembly: mscorlib (in mscorlib.dll)
The Module type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Assembly | Gets the appropriate Assembly for this instance of Module. |
![]() | CustomAttributes | Gets a collection that contains this module's custom attributes. |
![]() | FullyQualifiedName | Gets a string representing the fully qualified name and path to this module. |
![]() | MetadataToken | Gets a token that identifies the module in metadata. |
![]() | Name | Gets the name of the module with the path removed. |
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether this module and the specified object are equal. (Overrides Object::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.) |
![]() | GetCustomAttributes(Boolean) | Returns all custom attributes. |
![]() | GetCustomAttributes(Type, Boolean) | Returns custom attributes of the specified type. |
![]() | GetField(String) | Returns the global field that has the specified name. |
![]() | GetField(String, BindingFlags) | Returns the global field that has the specified name and binding attributes. |
![]() | GetFields() | Returns the global fields defined on the module. |
![]() | GetFields(BindingFlags) | Returns the global fields that are defined on the module and that match the specified binding flags. |
![]() | GetHashCode | Returns the hash code for this instance. (Overrides Object::GetHashCode().) |
![]() | GetMethod(String) | Returns the global method that has the specified name. |
![]() | GetMethod(String, array<Type>) | Returns the global method that matches the specified name and parameter types. |
![]() | 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. |
![]() | GetMethodImpl | In a derived class, provides the implementation for the GetMethod method overloads. |
![]() | GetMethods() | Returns the global methods defined on the module. |
![]() | GetMethods(BindingFlags) | Returns the global methods that are defined on the module and that match the specified binding flags. |
![]() | GetType() | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetType(String) | Returns the specified type, performing a case-sensitive search. |
![]() | GetType(String, Boolean) | Returns the specified type, searching the module with the specified case sensitivity. |
![]() | 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. |
![]() | GetTypes | Returns all the types defined within this module. |
![]() | IsDefined | Determines if the specified attribute type is applied to this module. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ResolveMethod(Int32) | Returns the method or constructor that is identified by the specified metadata token. |
![]() | 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. |
![]() | ResolveString | Returns the string that is identified by the specified metadata token. |
![]() | ResolveType(Int32) | Returns the type that is identified by the specified metadata token. |
![]() | 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. |
![]() | ToString | Returns the name of the module. (Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
![]() | GetCustomAttribute(Type) | Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified module. (Defined by CustomAttributeExtensions.) |
![]() | GetCustomAttribute<T>() | Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified module. (Defined by CustomAttributeExtensions.) |
![]() | GetCustomAttributes() | Overloaded. Retrieves a collection of custom attributes that are applied to a specified module. (Defined by CustomAttributeExtensions.) |
![]() | GetCustomAttributes(Type) | Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified module. (Defined by CustomAttributeExtensions.) |
![]() | GetCustomAttributes<T>() | Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified module. (Defined by CustomAttributeExtensions.) |
![]() | IsDefined | Indicates whether custom attributes of a specified type are applied to a specified module. (Defined by CustomAttributeExtensions.) |
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.
Note: |
|---|
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. |




Note: