AppDomainManager::CreateDomainHelper Method
Provides a helper method to create an application domain.
Assembly: mscorlib (in mscorlib.dll)
[SecurityPermissionAttribute(SecurityAction::Demand, ControlAppDomain = true)] protected: static AppDomain^ CreateDomainHelper( String^ friendlyName, Evidence^ securityInfo, AppDomainSetup^ appDomainInfo )
Parameters
- friendlyName
- Type: System::String
The friendly name of the domain.
- securityInfo
- Type: System.Security.Policy::Evidence
An object that contains evidence mapped through the security policy to establish a top-of-stack permission set.
- appDomainInfo
- Type: System::AppDomainSetup
An object that contains application domain initialization information.
| Exception | Condition |
|---|---|
| ArgumentNullException | friendlyName is nullptr. |
This protected helper method handles the creation of a new application domain.
This friendly name, specified by the friendlyName parameter, can be displayed in user interfaces to identify the domain. For more information, see the FriendlyName property.
- SecurityPermission
for operating with infrastructure code. Security action: LinkDemand. Associated enumeration: SecurityPermissionFlag::Infrastructure
- SecurityPermission
for the ability to create and manipulate an application domain. Security action: Demand. Associated enumeration: SecurityPermissionFlag::ControlAppDomain
- SecurityPermission
for controlling evidence. Security action: Demand. Associated enumeration: SecurityPermissionFlag::ControlEvidence
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.