Sunday, June 17, 2007

Loading Assemblies into an AppDomain


'Creating the AppDomain
Dim d as AppDomain = AppDomain.CreateDomain("NewDomain")

'Load the assembly using path
d.ExecuteAssembly("MyAssembly.dll")

'Load the assembly from a referenced library
d.ExecuteAssemblyByName("MyAssembly")

'Unload it
Appdomain.Unload(d)

No comments: