AppDomain.IsDefaultAppDomain Method

Returns a value that indicates whether the application domain is the default application domain for the process.

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

member IsDefaultAppDomain : unit -> bool

Return Value

Type: System.Boolean
true if the current AppDomain object represents the default application domain for the process; otherwise, false.

Every managed process has a default application domain. Execution begins in the default domain.

The following code example creates a second application domain and displays information about the default domain and the new domain.

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft