zoukankan      html  css  js  c++  java
  • Programming with Application Domains

    Programming with Application Domains

    Application domains are usually created and manipulated programmatically by runtime hosts. However, sometimes an application program might also want to work with application domains. For example, an application program could unload an application component into a domain to avoid having to stop the entire application.

    The AppDomain class is the programmatic interface to application domains. This class includes methods to create and unload domains, to create instances of types in domains, and to unload domains. The following table lists commonly used AppDomain methods.

    AppDomain Method Description
    CreateDomain Creates a new application domain. CreateDomain takes a set of properties that customize various aspects of the domain, such as the application base, or root directory for the application; the location of the configuration file for the domain; and the search path that the common language runtime is to use to load assemblies into the domain.
    CreateInstanceFrom Creates an instance of a specified type in the application domain.
    Load Loads an assembly into the application domain.
    Unload Performs a graceful shutdown of the domain. The application domain is not unloaded until all threads running in the domain have either stopped or are no longer in the domain.

    The unmanaged interfaces described in the common language runtime Hosting Interfaces Specification also provide access to application domains. Runtime hosts can use interfaces from unmanaged code to create and gain access to the application domains within a process.

    See Also

    Application Domains | AppDomain Class | AppDomain methods

  • 相关阅读:
    关于Altium Designer的BOM,元件清单
    关于Altium Designer中的搜索图纸上的元件
    头文件的问题
    关于stm32加不进.h文件的问题
    【数论】——欧拉定理
    python matplotlib 多图像排列显示
    直方图均衡原理
    辐射度,辐照度,相机响应函数
    A = min(1, max(0, A))
    gamma校正
  • 原文地址:https://www.cnblogs.com/MayGarden/p/1643922.html
Copyright © 2011-2022 走看看