Export (0) Print
Expand All
Expand Minimize

LoaderOptimization Enumeration

An enumeration used with the LoaderOptimizationAttribute class to specify loader optimizations for an executable.

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

[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public enum LoaderOptimization
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public enum LoaderOptimization
SerializableAttribute 
ComVisibleAttribute(true) 
public enum LoaderOptimization

 Member nameDescription
DisallowBindingsIgnored by the common language runtime. 
DomainMaskDo not use. This mask selects the domain-related values, screening out the unused DisallowBindings flag. 
MultiDomainIndicates that the application will probably have many domains that use the same code, and the loader must share maximal internal resources across application domains.  
MultiDomainHostIndicates that the application will probably host unique code in multiple domains, and the loader must share resources across application domains only for globally available (strong-named) assemblies that have been added to the global assembly cache.  
NotSpecifiedIndicates that no optimizations for sharing internal resources are specified. If the default domain or hosting interface specified an optimization, then the loader uses that; otherwise, the loader uses SingleDomain
SingleDomainIndicates that the application will probably have a single domain, and loader must not share internal resources across application domains.  

The meaning of MultiDomainHost changed in the .NET Framework version 2.0. The loader now shares resources across application domains only for assemblies that have been added to the global assembly cache.

NoteNote:

If custom code access security policy is set for the AppDomain, by using the SetAppDomainPolicy property, and the AppDomain is created using the MultiDomain flag, the effect is the same as specifying the MultiDomainHost flag; that is, only assemblies in the GAC are shared. When this occurs, the loader does not throw an exception and the application does not experience the performance gains associated with the MultiDomain flag.

For more information on assembly sharing and domain-neutral assembly loading, see Application Domains and Assemblies.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft