Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- friendlyName
Type: System. . :: . .String
The friendly name of the ___domain.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.