Provides a managed equivalent of an unmanaged host.
Assembly: mscorlib (in mscorlib.dll)
[ComVisibleAttribute(true)] [SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::Infrastructure)] [SecurityPermissionAttribute(SecurityAction::InheritanceDemand, Flags = SecurityPermissionFlag::Infrastructure)] public ref class AppDomainManager : public MarshalByRefObject
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. 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
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 theapplication 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, array<StrongName>) method can be loaded in the AppDomainManager constructor and the InitializeNewDomain method.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Xbox 360
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.