AppDomain Class

July 28, 2014

Represents an application domain, which is an isolated environment where applications execute. This class cannot be inherited.

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

public sealed class AppDomain

The AppDomain type exposes the following members.

  NameDescription
Public propertyStatic memberCurrentDomainGets the current application domain for the current Thread.
Public propertyDomainManagerGets the domain manager that was provided by the host when the application domain was initialized.
Public propertyFriendlyNameGets the friendly name of this application domain.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAssembliesGets the assemblies that have been loaded into the execution context of this application domain.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the type of the current instance.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringObtains a string representation that includes the friendly name of the application domain and any context policies. (Overrides Object.ToString().)
Top

  NameDescription
Public eventUnhandledExceptionOccurs when an exception is not caught.
Top

Application domains, which are represented by AppDomain objects, help provide isolation, unloading, and security boundaries for executing managed code. A Windows Phone application has only one application domain.

If an assembly is loaded into the default application domain, it cannot be unloaded from memory while the process is running.

TopicLocation
How to: Configure an Application Domain.NET Framework: Programming Fundamentals
How to: Load Assemblies into an Application Domain.NET Framework: Programming Fundamentals
How to: Create an Application Domain.NET Framework: Programming Fundamentals
How to: Unload an Application Domain.NET Framework: Programming Fundamentals
How to: Configure an Application Domain.NET Framework: Programming Fundamentals
How to: Load Assemblies into an Application Domain.NET Framework: Programming Fundamentals
How to: Create an Application Domain.NET Framework: Programming Fundamentals
How to: Unload an Application Domain.NET Framework: Programming Fundamentals
How to: Configure an Application Domain

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2014 Microsoft