45 if (m_appActivator ==
null)
49 return m_appActivator;
68 if (m_entryAssembly ==
null)
73 ManifestRunner manifestRunner =
new ManifestRunner(currentDomain, currentDomain.
ActivationContext);
74 m_entryAssembly = manifestRunner.EntryAssembly;
78 RuntimeAssembly o =
null;
79 GetEntryAssembly(JitHelpers.GetObjectHandleOnStack(ref o));
83 return m_entryAssembly;
118 if (friendlyName ==
null)
122 if (securityInfo !=
null)
125 AppDomain.CheckDomainCreationEvidence(appDomainInfo, securityInfo);
127 if (appDomainInfo ==
null)
158 [SuppressUnmanagedCodeSecurity]
159 private static extern void GetEntryAssembly(ObjectHandleOnStack retAssembly);
171 private static extern bool HasHost();
175 [SuppressUnmanagedCodeSecurity]
176 private static extern void RegisterWithHost(
IntPtr appDomainManager);
178 internal void RegisterWithHost()
187 RegisterWithHost(intPtr);
191 if (!intPtr.IsNull())
AppDomainManagerInitializationOptions
Specifies the action that a custom application domain manager takes when initializing a new domain.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Describes a set of security permissions applied to code. This class cannot be inherited.
virtual ApplicationActivator ApplicationActivator
Gets the application activator that handles the activation of add-ins and manifest-based applications...
string TargetFrameworkName
Gets or sets a string that specifies the target version and profile of the .NET Framework for the app...
virtual bool CheckSecuritySettings(SecurityState state)
Indicates whether the specified operation is allowed in the application domain.
string AppDomainManagerAssembly
Gets or sets the display name of the assembly that provides the type of the application domain manage...
Provides the functionality that allows a common language runtime host to participate in the flow,...
static int Release(IntPtr pUnk)
Decrements the reference count on the specified interface.
virtual void InitializeNewDomain(AppDomainSetup appDomainInfo)
Initializes the new application domain.
ActivationContext ActivationContext
Gets the activation context for the current application domain.
virtual AppDomain CreateDomain(string friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
Returns a new or existing application domain.
static AppDomain CurrentDomain
Gets the current application domain for the current T:System.Threading.Thread.
Represents an application domain, which is an isolated environment where applications execute....
Represents assembly binding information that can be added to an instance of T:System....
SecurityAction
Specifies the security actions that can be performed using declarative security.
Provides information about, and means to manipulate, the current environment and platform....
string AppDomainManagerType
Gets or sets the full name of the type that provides the application domain manager for application d...
bool IsDefaultAppDomain()
Returns a value that indicates whether the application domain is the default application domain for t...
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
A platform-specific type that is used to represent a pointer or a handle.
static void PrepareConstrainedRegions()
Designates a body of code as a constrained execution region (CER).
Provides a collection of methods for allocating unmanaged memory, copying unmanaged memory blocks,...
AppDomainManagerInitializationOptions InitializationFlags
Gets the initialization flags for custom application domain managers.
MethodImplOptions
Defines the details of how a method is implemented.
CharSet
Dictates which character set marshaled strings should use.
Provides a managed equivalent of an unmanaged host.
void Demand()
Forces a T:System.Security.SecurityException at run time if all callers higher in the call stack have...
virtual Assembly EntryAssembly
Gets the entry assembly for an application.
Defines the set of information that constitutes input to security policy decisions....
static readonly IntPtr Zero
A read-only field that represents a pointer or handle that has been initialized to zero.
Provides the base class for the activation of manifest-based assemblies.
AppDomainManager DomainManager
Gets the domain manager that was provided by the host when the application domain was initialized.
static AppDomain CreateDomainHelper(string friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
Provides a helper method to create an application domain.
static IntPtr GetIUnknownForObject(object o)
Returns an IUnknown interface from a managed object.
SecurityPermissionFlag
Specifies access flags for the security permission object.
Allows the control and customization of security behavior for application domains.
Provides a base class for requesting the security status of an action from the T:System....
Provides a set of static methods and properties that provide support for compilers....
Enables access to objects across application domain boundaries in applications that support remoting.