AppDomain Members
.NET Framework 2.0
Represents an application domain, which is an isolated environment where applications execute. This class cannot be inherited.
The following tables list the members exposed by the AppDomain type.
| Name | Description | |
|---|---|---|
| ActivationContext | Gets the activation context for the current application domain. |
| ApplicationIdentity | Gets the identity of the application in the application domain. |
| ApplicationTrust | Gets information describing permissions granted to an application and whether the application has a trust level that allows it to run. |
| BaseDirectory | Gets the base directory that the assembly resolver used to probe for assemblies. |
| CurrentDomain | Gets the current application domain for the current Thread. |
| DomainManager | Gets the domain manager that was provided by the host when the application domain was initialized. |
| 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 | Gets the friendly name of this application domain. |
| Id | Gets an integer that uniquely identifies the application domain within the process. |
| 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. |
| Name | Description | |
|---|---|---|
| AppendPrivatePath | Appends the specified name of the directory to the private path. |
| ApplyPolicy | Returns the assembly display name after policy has been applied. |
| 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. Creates a new instance of a specified COM type. |
| CreateDomain | 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 | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
| 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 | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| ExecuteAssembly | Overloaded. Executes the assembly contained in the specified file. |
| ExecuteAssemblyByName | Overloaded. Executes an assembly. |
| GetAssemblies | Gets the assemblies that have been loaded into the execution context of this application domain. |
| GetCurrentThreadId | Gets the current thread identifier. |
| GetData | Gets the value stored in the current application domain for the specified name. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetType | Gets the type of the current instance. |
| InitializeLifetimeService | Overridden. Gives the AppDomain an infinite lifetime by preventing a lease from being created. |
| IsDefaultAppDomain | Returns a value that indicates whether the application domain is the default application domain for the process. |
| 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. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ReflectionOnlyGetAssemblies | Returns the assemblies that have been loaded into the reflection-only context of the 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 | Overloaded. Assigns a value to an 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 | Overridden. Obtains a string representation that includes the friendly name of the application domain and any context policies. |
| Unload | Unloads the specified application domain. |
| Name | Description | |
|---|---|---|
| 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 when the default application domain's parent process exits. |
| ReflectionOnlyAssemblyResolve | Occurs when the resolution of an assembly fails in the reflection-only context. |
| ResourceResolve | Occurs when the resolution of a resource fails because the resource is not a valid linked or embedded resource in the assembly. |
| TypeResolve | Occurs when the resolution of a type fails. |
| UnhandledException | Occurs when an exception is not caught. |
| Name | Description | |
|---|---|---|
| System._AppDomain.GetIDsOfNames | Maps a set of names to a corresponding set of dispatch identifiers. |
| System._AppDomain.GetTypeInfo | Retrieves the type information for an object, which can then be used to get the type information for an interface. |
| System._AppDomain.GetTypeInfoCount | Retrieves the number of type information interfaces that an object provides (either 0 or 1). |
| System._AppDomain.Invoke | Provides access to properties and methods exposed by an object. |
Community Additions
ADD
Show: