An enumeration used with the LoaderOptimizationAttribute class to specify loader optimizations for an executable.
Assembly: mscorlib (in mscorlib.dll)
|Indicates 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 .|
|Indicates that the application will probably have a single domain, and loader must not share internal resources across application domains.|
|Indicates that the application will probably have many domains that use the same code, and the loader must share maximal internal resources across application domains.|
|Indicates 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.|
|Obsolete. Do not use. This mask selects the domain-related values, screening out the unused flag.|
|Obsolete. Ignored by the common language runtime.|
The meaning of 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.
If custom code access security policy is set for the AppDomain, by using the SetAppDomainPolicy property, and the AppDomain is created using the flag, the effect is the same as specifying the 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 flag.
For more information on assembly sharing and domain-neutral assembly loading, see Application Domains and Assemblies.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.