如何:卸载应用程序域。
通过卸载应用程序域,可以从进程中卸载程序集。
Assemblies can be unloaded from the process by unloading application domains.
卸载应用程序域。
回调后,卸载应用程序域的某些部分可能仍会继续。
Some parts of unloading the application domain might continue after the AppDomainCreationFinished callback.
如果应用程序域卸载,该计时器实例将停止激发事件。
If your application domain unloads, the timer instance will stop firing its events.
显示自应用程序启动后卸载的应用程序域的总数。
Displays the total number of application domains unloaded since the application started.
显然是没有办法明确卸载组件一旦加载,除非整个应用程序域时。
Apparently there is no way to explicitly unload assemblies once loaded unless the entire app domain is unloaded.
使用应用程序域使您可以卸载在单个应用程序中运行的代码。
Using application domains enables you to unload the code running in a single application.
卸载过程中,没有新线程可以访问该应用程序域,并且会释放该应用程序域特定的所有数据结构。
During the unloading process, no new threads can access the application domain, and all application domain-specific data structures are freed.
如果应用程序域是自动创建的,则此方法会卸载该应用程序域。
If the application domain was created automatically, this method unloads that application domain.
承载clr的应用程序可以更改默认行为并指定CLR卸载发生异常的应用程序域,但允许进程继续进行。
An application that hosts the CLR can change the default behavior and specify that the CLR unload the application domain where the exception occurs, but lets the process continue.
请注意,然后代码会尝试将卸载的应用程序域的友好名称输出至控制台。
Note that the code then attempts to print the friendly name of the unloaded application domain to the console.
其他程序集都将针对它们加载的每个应用程序域分别进行加载和JIT编译,从而可以从进程中卸载。
Other assemblies are loaded and JIT-compiled separately for each application domain in which they are loaded, and thus can be unloaded from the process.
句柄将在与堆值关联的应用程序域中创建,并且,如果应用程序域被卸载,该句柄将变为无效。
The handle will be created in the application domain that is associated with the heap value, and will become invalid if the application domain gets unloaded.
要从内存中卸载在进程中运行的托管代码,以便将内存用于其他目的,宿主必须卸载代码运行时所在的应用程序域。
To unload managed code running in a process from memory so that memory can be used for other purposes, the host must unload the application domain in which the code is running.
要从内存中卸载在进程中运行的托管代码,以便将内存用于其他目的,宿主必须卸载代码运行时所在的应用程序域。
To unload managed code running in a process from memory so that memory can be used for other purposes, the host must unload the application domain in which the code is running.
应用推荐