Defines a named dynamic module in this assembly and specifies whether or not symbol information should be emitted. The defined dynamic module is transient.
[Visual Basic] Overloads Overridable Public Function DefineDynamicModule( _ ByVal name As String, _ ByVal emitSymbolInfo As Boolean _ ) As ModuleBuilder [C#] public virtual ModuleBuilder DefineDynamicModule( string name, bool emitSymbolInfo ); [C++] public: virtual ModuleBuilder* DefineDynamicModule( String* name, bool emitSymbolInfo ); [JScript] public function DefineDynamicModule( name : String, emitSymbolInfo : Boolean ) : ModuleBuilder;
A ModuleBuilder representing the defined dynamic module.
Exception Type | Condition |
---|---|
ExecutionEngineException | if the default symbol writer cannot be loaded. |
It is an error to define multiple dynamic modules with the same name in an assembly.
Assembly Class | Assembly Members | System.Reflection Namespace | Assembly.DefineDynamicModule Overload List