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)

Syntax

'Declaration
Public Shared Function CreateDomain ( _
    friendlyName As String _
) As AppDomain
public static AppDomain CreateDomain(
    string friendlyName
)
public:
static AppDomain^ CreateDomain(
    String^ friendlyName
)
static member CreateDomain : 
        friendlyName:string -> AppDomain 
public static function CreateDomain(
    friendlyName : String
) : AppDomain

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

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.

.NET Framework Security

See Also

Reference

AppDomain Class

System Namespace