Export (0) Print
Expand All

AppDomain.CreateDomain Method (String)

Creates a new application domain with the specified name.

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

static member CreateDomain : 
        friendlyName:string -> AppDomain

Parameters

friendlyName
Type: System.String

The friendly name of the domain.

Return Value

Type: System.AppDomain
The newly created application domain.

ExceptionCondition
ArgumentNullException

friendlyName is a null reference (Nothing in Visual Basic).

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Show:
© 2015 Microsoft