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!

AppDomain.DefineDynamicAssembly (AssemblyName, AssemblyBuilderAccess, String)

Defines a dynamic assembly with the given name, the given access, and the name of the directory for saving the assembly.

[Visual Basic]
Overloads Public Function DefineDynamicAssembly( _
   ByVal name As AssemblyName, _
   ByVal access As AssemblyBuilderAccess, _
   ByVal dir As String _
) As AssemblyBuilder
[C#]
public AssemblyBuilder DefineDynamicAssembly(
   AssemblyName name,
   AssemblyBuilderAccess access,
   string dir
);
[C++]
public: AssemblyBuilder* DefineDynamicAssembly(
   AssemblyName* name,
   AssemblyBuilderAccess access,
   String* dir
);
[JScript]
public function DefineDynamicAssembly(
   name : AssemblyName,
   access : AssemblyBuilderAccess,
   dir : String
) : AssemblyBuilder;

Parameters

name
The unique identity of the dynamic assembly.
access
The mode in which the dynamic assembly will be accessed.
dir
The name of the directory in which the assembly will be saved. If dir is a null reference (in Visual Basic Nothing), the directory defaults to the current directory.

Return Value

An AssemblyBuilder object that represents the dynamic assembly created.

Exceptions

Exception Type Condition
ArgumentNullException is thrown if name is a null reference (Nothing).

Remarks

You can specify partial signing of the assembly by specifing AssemblyName.Originator. You can specify full signing of the assembly by specifying AssemblyName.Originator and AssemblyName.KeyPair.

See Also

AppDomain Class | AppDomain Members | System Namespace | AppDomain.DefineDynamicAssembly Overload List