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.
Properties
Name | Description | |
---|---|---|
Assembly | Gets the appropriate Assembly for this instance of Module. | |
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. |
Top
Methods
Name | Description | |
---|---|---|
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). |
|
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 | 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(). |
|
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.) | |
ResolveField(Int32) | Returns the field identified by the specified metadata token. | |
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. | |
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().) |
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.
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. |
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.