AppDomain Members
Public Properties
BaseDirectory | Gets the base directory that the assembly resolver used to probe for assemblies. |
![]() CurrentDomain | Gets the current application domain for the current Thread. |
DynamicDirectory | Gets the directory that the assembly resolver used to probe for dynamically-created assemblies. |
Evidence | Gets the Evidence associated with this application domain that is used as input to the security policy. |
FriendlyName Supported by the .NET Compact Framework. | Gets the friendly name of this application domain. |
RelativeSearchPath | Gets the path relative to the base directory where the assembly resolver should probe for private assemblies. |
SetupInformation | Gets the application domain configuration information for this instance. |
ShadowCopyFiles | Gets an indication whether all assemblies loaded in the application domain are shadow copied. |
Public Methods
AppendPrivatePath | Appends the specified name of the directory to the private path. |
ClearPrivatePath | Resets the path that specifies the location of private assemblies to the empty string (""). |
ClearShadowCopyPath | Resets the list of directories containing shadow copied assemblies to the empty string (""). |
CreateComInstanceFrom | Overloaded. |
![]() CreateDomain Supported by the .NET Compact Framework. | Overloaded. Creates a new application domain. |
CreateInstance | Overloaded. Creates a new instance of a specified type defined in a specified assembly. |
CreateInstanceAndUnwrap | Overloaded. Creates a new instance of a specified type. |
CreateInstanceFrom | Overloaded. Creates a new instance of a specified type defined in the specified assembly file. |
CreateInstanceFromAndUnwrap | Overloaded. Creates a new instance of a specified type defined in the specified assembly file. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
DefineDynamicAssembly | Overloaded. Defines a dynamic assembly in the current application domain. |
DoCallBack | Executes the code in another application domain that is identified by the specified delegate. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
ExecuteAssembly Supported by the .NET Compact Framework. | Overloaded. Executes the assembly contained in the specified file. |
GetAssemblies | Gets the assemblies that have been loaded into this application domain. |
![]() GetCurrentThreadId | Gets the current thread identifier. |
GetData | Gets the value stored in the current application domain for the specified data name. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
InitializeLifetimeService | Overridden. Gives the AppDomain an infinite lifetime by preventing a lease from being created. |
IsFinalizingForUnload | Indicates whether this application domain is unloading, and the objects it contains are being finalized by the common language runtime. |
Load | Overloaded. Loads an Assembly into this application domain. |
SetAppDomainPolicy | Establishes the security policy level for this application domain. |
SetCachePath | Establishes the specified directory path as the location where assemblies are shadow copied. |
SetData | Assigns the specified value to the specified application domain property. |
SetDynamicBase | Establishes the specified directory path as the location where dynamically generated files are stored and accessed. |
SetPrincipalPolicy | Specifies how principal and identity objects should be attached to a thread if the thread attempts to bind to a principal while executing in this application domain. |
SetShadowCopyFiles | Turns on shadow copying. |
SetShadowCopyPath | Establishes the specified directory path as the location of assemblies to be shadow copied. |
SetThreadPrincipal | Sets the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain. |
ToString Supported by the .NET Compact Framework. | Overridden. Obtains the String representation of this instance. |
![]() Unload | Unloads the specified application domain. |
Public Events
AssemblyLoad | Occurs when an assembly is loaded. |
AssemblyResolve | Occurs when the resolution of an assembly fails. |
DomainUnload | Occurs when an AppDomain is about to be unloaded. |
ProcessExit | Occurs on the default application domain when the default application domain's parent process exits. |
ResourceResolve | Occurs when the resolution of a resource fails. |
TypeResolve | Occurs when the resolution of a type fails. |
UnhandledException | Occurs when an exception is not caught by an event handler. |
Protected Methods
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |




