Export (0) Print
Expand All

AppDomainManager.CreateDomainHelper Method

Provides a helper method to create an application domain.

Namespace:  System
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.

Return Value

Type: System.AppDomain
A newly created application domain.

ExceptionCondition
ArgumentNullException

friendlyName is null.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

Show:
© 2014 Microsoft