Permalink
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (73 sloc) 4.4 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
<appDomainManagerAssembly> Element
03/30/2017
.net-framework
dotnet-clr
article
VB
CSharp
C++
jsharp
<appDomainManagerAssembly> element
appDomainManagerAssembly element
c7c56e39-a700-44f5-b94e-411bfce339d9
7
rpetrusha
ronpet
wpickett

<appDomainManagerAssembly> Element

Specifies the assembly that provides the application domain manager for the default application domain in the process.

<configuration>
<runtime>
<appDomainManagerAssembly>

Syntax

<appDomainManagerAssembly   
   value="assembly display name" />  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
value Required attribute. Specifies the display name of the assembly that provides the application domain manager for the default application domain in the process.

Child Elements

None.

Parent Elements

Element Description
configuration The root element in every configuration file used by the common language runtime and .NET Framework applications.
runtime Contains information about assembly binding and garbage collection.

Remarks

To specify the type of the application domain manager, you must specify both this element and the <appDomainManagerType> element. If either of these elements is not specified, the other is ignored.

When the default application domain is loaded, xref:System.TypeLoadException is thrown if the specified assembly does not exist or if the assembly does not contain the type specified by the <appDomainManagerType> element; and the process fails to start. If the assembly is found but the version information does not match, a xref:System.IO.FileLoadException is thrown.

When you specify the application domain manager type for the default application domain, other application domains created from the default application domain inherit the application domain manager type. Use the xref:System.AppDomainSetup.AppDomainManagerType%2A?displayProperty=nameWithType and xref:System.AppDomainSetup.AppDomainManagerAssembly%2A?displayProperty=nameWithType properties to specify a different application domain manager type for a new application domain.

Specifying the application domain manager type requires the application to have full trust. (For example, an application running on the desktop has full trust.) If the application does not have full trust, a xref:System.TypeLoadException is thrown.

For the format of the assembly display name, see the xref:System.Reflection.Assembly.FullName%2A?displayProperty=nameWithType property.

This configuration element is available only in the [!INCLUDEnet_v40_long] and later.

Example

The following example shows how to specify that the application domain manager for the default application domain of a process is the MyMgr type in the AdMgrExample assembly.

<configuration>  
   <runtime>  
      <appDomainManagerType value="MyMgr" />  
      <appDomainManagerAssembly   
         value="AdMgrExample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6856bccf150f00b3" />  
   </runtime>  
</configuration>  

See Also

xref:System.AppDomainSetup.AppDomainManagerType%2A?displayProperty=nameWithType
xref:System.AppDomainSetup.AppDomainManagerAssembly%2A?displayProperty=nameWithType
<appDomainManagerType> Element
Runtime Settings Schema
Configuration File Schema
SetAppDomainManagerType Method