Application domain

xiaoxiao2021-03-06  70

The application domain is usually created and operated by a running library host. However, sometimes the application may also be used in combination with the application domain. For example, an application can uninstall an application component into a domain to avoid stopping the entire application.

Appdomain

It is the programming interface of the application domain. Such a variety of methods, these methods can create and uninstall the domain, create various types of instances in the domain, and unload domains. The following table lists commonly used

Appdomain

method.

AppDomain Method Description CreateDomain Creates a new application domain. CreateDomain uses a set of properties from all aspects of defining domains, such as application bases (ie, the root directory of the application), the location of the domain configuration file, and the public language runtime to load the assembly to the domain search path . CREATEINSTANCEFROM creates an instance of the specified type in the application domain. LOAD loads the assembly into the application domain. Unload performs the normal shutdown of the domain. The application domain is uninstalled only after all threads running in the application domain have stopped or after the running threads are no longer running.

The non-hosting interface described in the public language running library host interface specification also provides access to the application domain. Running library hosts You can create an application domain and get access to these application domains in your proximity.

See

Application domain |

Appdomain

|

Appdomain method

转载请注明原文地址:https://www.9cbs.com/read-90803.html

New Post(0)