This documentation is archived and is not being maintained.

AssemblyBuilder.GetDynamicModule Method

Returns the dynamic module with the specified name.

[Visual Basic]
Public Function GetDynamicModule( _
   ByVal name As String _
) As ModuleBuilder
public ModuleBuilder GetDynamicModule(
 string name
public: ModuleBuilder* GetDynamicModule(
 String* name
public function GetDynamicModule(
   name : String
) : ModuleBuilder;


The name of the requested dynamic module.

Return Value

A ModuleBuilder object representing the requested dynamic module.


Exception Type Condition
ArgumentNullException name is a null reference (Nothing in Visual Basic).
ArgumentException The length of name is zero.
SecurityException The caller does not have the required permission.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

AssemblyBuilder Class | AssemblyBuilder Members | System.Reflection.Emit Namespace