CreateDomain Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a new application domain with the specified name.

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

public static AppDomain CreateDomain(
	string friendlyName


Type: System..::..String
The friendly name of the domain.

Return Value

Type: System..::..AppDomain
The newly created application domain.


friendlyName is nullNothingnullptrunita 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.