Saves this dynamic assembly to disk. Save also saves all dynamic modules defined in this dynamic assembly. The assembly file name can be the same as one of the module's name. If so, the assembly information is stored within that module. The assembly file name can be different from the names of all of the modules contained within the assembly. If so, the assembly is stored standalone.
[Visual Basic] Public Sub Save( _ ByVal assemblyFileName As String _ ) [C#] public void Save( string assemblyFileName ); [C++] public: void Save( String* assemblyFileName ); [JScript] public function Save( assemblyFileName : String );
None
Exception Type | Condition |
---|---|
InvalidOperationException | if this assembly has been saved before or if this assembly has access AssemblyBuilderAccess.Run |
This method also saves all dynamic modules defined in this dynamic assembly. The assembly file name can be the same as one of the module's name. If so, the assemby information is stored within that module. assemblyFileName can be different from the names of all of the modules contained within the assembly. If so, the assembly is stored standalone.
AssemblyBuilder Class | AssemblyBuilder Members | System.Reflection.Emit Namespace