Export (0) Print
Expand All

Module Class

Performs reflection on a module.

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

[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
public abstract class Module : ICustomAttributeProvider

The Module type exposes the following members.

  NameDescription
Protected methodModuleInitializes a new instance of the Module class.
Top

  NameDescription
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360AssemblyGets the appropriate Assembly for this instance of Module.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360FullyQualifiedNameGets a string representing the fully qualified name and path to this module.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360MetadataTokenGets a token that identifies the module in metadata.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360NameGets the name of the module with the path removed.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360Equals(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 360FinalizeAllows 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 360GetCustomAttributes(Boolean)Returns all custom attributes.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetCustomAttributes(Type, Boolean)Returns custom attributes of the specified type.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetField(String)Returns the global field that has the specified name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetField(String, BindingFlags)Returns the global field that has the specified name and binding attributes.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetFields()Returns the global fields defined on the module.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetFields(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 360GetHashCodeServes 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 360GetMethod(String)Returns the global method that has the specified name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetMethod(String, Type[])Returns the global method that matches the specified name and parameter types.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetMethod(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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetMethodImplIn a derived class, provides the implementation for the GetMethod method overloads.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetMethods()Returns the global methods defined on the module.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetMethods(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 360GetType()Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetType(String)Returns the specified type, performing a case-sensitive search.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetType(String, Boolean)Returns the specified type, searching the module with the specified case sensitivity.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetType(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 360GetTypesReturns all the types defined within this module.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360IsDefinedDetermines if the specified attribute type is applied to this module.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResolveField(Int32)Returns the field identified by the specified metadata token.
Public methodResolveField(Int32, Type[], 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 360ResolveMethod(Int32)Returns the method or constructor that is identified by the specified metadata token.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ResolveMethod(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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ResolveStringReturns the string that is identified by the specified metadata token.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ResolveType(Int32)Returns the type that is identified by the specified metadata token.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ResolveType(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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ToStringReturns the name of the module. (Overrides Object.ToString().)
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.

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

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

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

Community Additions

ADD
Show:
© 2014 Microsoft