Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
 LoaderOptimization Enumeration

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
LoaderOptimization Enumeration

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Enumeration LoaderOptimization
Visual Basic (Usage)
Dim instance As LoaderOptimization
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
public enum LoaderOptimization
Visual C++
[SerializableAttribute]
[ComVisibleAttribute(true)]
public enum class LoaderOptimization
JScript
public enum LoaderOptimization
Member nameDescription
NotSpecified 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 SingleDomain.
SingleDomain Indicates that the application will probably have a single domain, and loader must not share internal resources across application domains.
MultiDomain 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.
MultiDomainHost 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.
DomainMask Obsolete. Do not use. This mask selects the domain-related values, screening out the unused DisallowBindings flag.
DisallowBindings Obsolete. Ignored by the common language runtime.

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker