AppDomain.CreateDomain Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a new application domain with the specified name.

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

static member CreateDomain : 
        friendlyName:string -> AppDomain


Type: System.String

The friendly name of the domain.

Return Value

Type: System.AppDomain

The newly created application domain.

Exception Condition

friendlyName is null.

The friendlyName parameter is intended to identify the domain in a manner that is meaningful to humans. This string should be suitable for display in user interfaces.

This method overload uses the AppDomainSetup information from the default application domain.

The following sample demonstrates, in general, how to create a domain using one of the CreateDomain overloads.

No code example is currently available or this language may not be supported.


for the ability to create and manipulate an application domain. Associated enumeration: SecurityPermissionFlag.ControlAppDomain. Security action: Demand.


to provide evidence. Associated enumeration: SecurityPermissionFlag.ControlEvidence.

.NET Framework
Available since 1.1
Return to top