Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AppDomainManager::CreateDomainHelper Method (String^, Evidence^, AppDomainSetup^)

 

Provides a helper method to create an application domain.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

protected:
[SecurityCriticalAttribute]
[SecurityPermissionAttribute(SecurityAction::Demand, ControlAppDomain = true)]
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.

Exception Condition
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.

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft