Gets the specified module in this assembly.
Assembly: mscorlib (in mscorlib.dll)
Public Overridable Function GetModule ( _
name As String _
) As Modulepublic virtual Module GetModule(
string name
)public:
virtual Module^ GetModule(
String^ name
)abstract GetModule :
name:string -> Module
override GetModule :
name:string -> Module Parameters
- name
- Type: System
. . :: . String
The name of the module being requested.
Return Value
Type: System.ReflectionThe module being requested, or
Implements
_Assembly| Exception | Condition |
|---|---|
| ArgumentNullException | The name parameter is |
| ArgumentException | The name parameter is an empty string (""). |
| FileLoadException | A file that was found could not be loaded. |
| FileNotFoundException | name was not found. |
| BadImageFormatException | name is not a valid assembly. |
This method works on file names.
Classes in the Reflection.Emit namespace emit the scope name for a dynamic module. The scope name can be determined by the Module
A type can be retrieved from a specific module using Module
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.