NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AssemblyBuilder.DefineDynamicModule (String, String)

Defines a dynamic module with the given name that will be saved to the specified file. No symbol information is emitted.

[Visual Basic]
Overloads Public Function DefineDynamicModule( _
   ByVal name As String, _
   ByVal fileName As String _
) As ModuleBuilder
[C#]
public ModuleBuilder DefineDynamicModule(
   string name,
   string fileName
);
[C++]
public: ModuleBuilder* DefineDynamicModule(
   String* name,
   String* fileName
);
[JScript]
public function DefineDynamicModule(
   name : String,
   fileName : String
) : ModuleBuilder;

Parameters

name
The name of the dynamic module.
fileName
The name of the file to which the dynamic module should be saved.

Return Value

A ModuleBuilder object representing the defined dynamic module.

Exceptions

Exception Type Condition
ArgumentNullException if name is null
InvalidOperationException if this assembly has been previously saved
NotSupportedException if called on a dynamic assembly with AssemblyBuilderAccess.Run attribute

Requirements

NGWS Runtime Security:

ReflectionPermission SecurityAction.Demand, ReflectionEmit=true

See Also

AssemblyBuilder Class | AssemblyBuilder Members | System.Reflection.Emit Namespace | AssemblyBuilder.DefineDynamicModule Overload List