mscorlib(4.0.0.0) API with additions
System.AppDomainManager Class Reference

Provides a managed equivalent of an unmanaged host. More...

Inheritance diagram for System.AppDomainManager:
[legend]
Collaboration diagram for System.AppDomainManager:
[legend]

Public Member Functions

virtual AppDomain CreateDomain (string friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
 Returns a new or existing application domain. More...
 
virtual void InitializeNewDomain (AppDomainSetup appDomainInfo)
 Initializes the new application domain. More...
 
virtual bool CheckSecuritySettings (SecurityState state)
 Indicates whether the specified operation is allowed in the application domain. More...
 
- Public Member Functions inherited from System.MarshalByRefObject
object GetLifetimeService ()
 Retrieves the current lifetime service object that controls the lifetime policy for this instance. More...
 
virtual object InitializeLifetimeService ()
 Obtains a lifetime service object to control the lifetime policy for this instance. More...
 
virtual ObjRef CreateObjRef (Type requestedType)
 Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. More...
 

Public Attributes

virtual HostSecurityManager HostSecurityManager => null
 Gets the host security manager that participates in security decisions for the application domain. More...
 
virtual HostExecutionContextManager HostExecutionContextManager => HostExecutionContextManager.GetInternalHostExecutionContextManager()
 Gets the host execution context manager that manages the flow of the execution context. More...
 

Static Protected Member Functions

static AppDomain CreateDomainHelper (string friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
 Provides a helper method to create an application domain. More...
 

Properties

AppDomainManagerInitializationOptions InitializationFlags [get, set]
 Gets the initialization flags for custom application domain managers. More...
 
virtual ApplicationActivator ApplicationActivator [get]
 Gets the application activator that handles the activation of add-ins and manifest-based applications for the domain. More...
 
virtual Assembly EntryAssembly [get]
 Gets the entry assembly for an application. More...
 

Additional Inherited Members

- Protected Member Functions inherited from System.MarshalByRefObject
MarshalByRefObject MemberwiseClone (bool cloneIdentity)
 Creates a shallow copy of the current T:System.MarshalByRefObject object. More...
 

Detailed Description

Provides a managed equivalent of an unmanaged host.

Exceptions
T:System.Security.SecurityExceptionThe caller does not have the correct permissions. See the Requirements section.

Definition at line 17 of file AppDomainManager.cs.

Member Function Documentation

◆ CheckSecuritySettings()

virtual bool System.AppDomainManager.CheckSecuritySettings ( SecurityState  state)
virtual

Indicates whether the specified operation is allowed in the application domain.

Parameters
stateA subclass of T:System.Security.SecurityState that identifies the operation whose security status is requested.
Returns
true if the host allows the operation specified by state to be performed in the application domain; otherwise, false.

Definition at line 165 of file AppDomainManager.cs.

◆ CreateDomain()

virtual AppDomain System.AppDomainManager.CreateDomain ( string  friendlyName,
Evidence  securityInfo,
AppDomainSetup  appDomainInfo 
)
virtual

Returns a new or existing application domain.

Parameters
friendlyNameThe friendly name of the domain.
securityInfoAn object that contains evidence mapped through the security policy to establish a top-of-stack permission set.
appDomainInfoAn object that contains application domain initialization information.
Returns
A new or existing application domain.

Definition at line 102 of file AppDomainManager.cs.

◆ CreateDomainHelper()

static AppDomain System.AppDomainManager.CreateDomainHelper ( string  friendlyName,
Evidence  securityInfo,
AppDomainSetup  appDomainInfo 
)
staticprotected

Provides a helper method to create an application domain.

Parameters
friendlyNameThe friendly name of the domain.
securityInfoAn object that contains evidence mapped through the security policy to establish a top-of-stack permission set.
appDomainInfoAn object that contains application domain initialization information.
Returns
A newly created application domain.
Exceptions
T:System.ArgumentNullExceptionfriendlyName is null.

Definition at line 116 of file AppDomainManager.cs.

◆ InitializeNewDomain()

virtual void System.AppDomainManager.InitializeNewDomain ( AppDomainSetup  appDomainInfo)
virtual

Initializes the new application domain.

Parameters
appDomainInfoAn object that contains application domain initialization information.

Definition at line 153 of file AppDomainManager.cs.

Member Data Documentation

◆ HostExecutionContextManager

virtual HostExecutionContextManager System.AppDomainManager.HostExecutionContextManager => HostExecutionContextManager.GetInternalHostExecutionContextManager()

Gets the host execution context manager that manages the flow of the execution context.

Returns
The host execution context manager.

Definition at line 59 of file AppDomainManager.cs.

◆ HostSecurityManager

virtual HostSecurityManager System.AppDomainManager.HostSecurityManager => null

Gets the host security manager that participates in security decisions for the application domain.

Returns
The host security manager.

Definition at line 55 of file AppDomainManager.cs.

Property Documentation

◆ ApplicationActivator

virtual ApplicationActivator System.AppDomainManager.ApplicationActivator
get

Gets the application activator that handles the activation of add-ins and manifest-based applications for the domain.

Returns
The application activator.

Definition at line 42 of file AppDomainManager.cs.

◆ EntryAssembly

virtual Assembly System.AppDomainManager.EntryAssembly
get

Gets the entry assembly for an application.

Returns
The entry assembly for the application.

Definition at line 64 of file AppDomainManager.cs.

◆ InitializationFlags

AppDomainManagerInitializationOptions System.AppDomainManager.InitializationFlags
getset

Gets the initialization flags for custom application domain managers.

Returns
A bitwise combination of the enumeration values that describe the initialization action to perform. The default is F:System.AppDomainManagerInitializationOptions.None.

Definition at line 28 of file AppDomainManager.cs.


The documentation for this class was generated from the following file: