Mono Class Library: System NamespaceSystem.AppDomain Class |
See Also: AppDomain Members
System.Object
System.MarshalByRefObject
System.AppDomain
|
All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.
Application domains, which are represented by AppDomain objects, provide isolation, unloading, and security boundaries for executing managed code.
Multiple application domains can run in a single process; however, there is not a one-to-one correlation between application domains and threads. Several threads can belong to a single application domain, and while a given thread is not confined to a single application domain, at any given time, a thread executes in a single application domain.
Application domains are created using the CreateDomain method. AppDomain instances are used to load and execute assemblies (System.Reflection.Assembly). When a AppDomain is no longer in use, it can be unloaded.
The AppDomain class implements a set of events to enable applications to respond to the following conditions:
[Edit]
Condition Event An assembly was loaded. AppDomain.AssemblyLoad An application domain will be unloaded. AppDomain.DomainUnload An unhandled exception was thrown. AppDomain.UnhandledException
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0