Provides a managed equivalent of an unmanaged host.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|ApplicationActivator||Gets the application activator that handles the activation of add-ins and manifest-based applications for the domain.|
|EntryAssembly||Gets the entry assembly for an application.|
|HostExecutionContextManager||Gets the host execution context manager that manages the flow of the execution context.|
|HostSecurityManager||Gets the host security manager that participates in security decisions for the application domain.|
|InitializationFlags||Gets the initialization flags for custom application domain managers.|
|CheckSecuritySettings||Indicates whether the specified operation is allowed in the application domain.|
|CreateDomain||Returns a new or existing application domain.|
|CreateDomainHelper||Provides a helper method to create an application domain.|
|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.)|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (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. (Inherited from Object.)|
|InitializeLifetimeService||Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)|
|InitializeNewDomain||Initializes the new application domain.|
|MemberwiseClone()||Creates a shallow copy of the current Object. (Inherited from Object.)|
|MemberwiseClone(Boolean)||Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
The caller does not have the correct permissions. See the Requirements section.
Do not use to configure an application domain in ASP.NET. In ASP.NET, configuration must be handled by the host.
Implementing the class enables a hosting application to participate in the creation of new application domains. To replace the default , identify the assembly and type of the replacement in the APPDOMAIN_MANAGER_ASM and APPDOMAIN_MANAGER_TYPE environment variables, or use the <appDomainManagerAssembly> and <appDomainManagerType> elements in your configuration file. The assembly must be fully trusted and be contained in the global assembly cache or the directory of the starting application. The type and assembly names must be fully qualified in the environment variables. For example:
set APPDOMAIN_MANAGER_ASM=customappDomainmanager, Version=188.8.131.52, Culture=neutral, PublicKeyToken=f1368f7b12a08d72
If the assembly that contains your subclass of depends on assemblies that are marked with the conditional AllowPartiallyTrustedCallersAttribute (APTCA) attribute, you must include those assemblies in the list that you pass to the PartialTrustVisibleAssemblies property of the AppDomainSetup you use to create application domains. Otherwise, the assemblies that are marked with the conditional APTCA attribute will be disabled.
The is the managed equivalent of the unmanaged host. An object participates in the creation of new application domains in a process and can customize the new AppDomain before other managed code runs. The can also supply host managers that participate in other aspects of common language runtime execution. For example, an can identify a HostSecurityManager object that participates in the security decisions of the application domain.
Only assemblies granted FullTrust, such as assemblies in the global assembly cache or identified as fullTrustAssemblies in the AppDomain.CreateDomain(String, Evidence, AppDomainSetup, PermissionSet, StrongName) method can be loaded in the AppDomainManager constructor and the InitializeNewDomain method.
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
for derived classes to plug executable code into the common language runtime hosting infrastructure. Associated enumeration: SecurityPermissionFlag.Infrastructure.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.