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.Save

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
);

Parameters

assemblyFileName
The file name of the assembly.

Return Value

None

Exceptions

Exception Type Condition
InvalidOperationException if this assembly has been saved before or if this assembly has access AssemblyBuilderAccess.Run

Remarks

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.

See Also

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