LoaderOptimizationAttribute Class
Collapse the table of content
Expand the table of content

LoaderOptimizationAttribute Class

Used to set the default loader optimization policy for the main method of an executable application.

For a list of all members of this type, see LoaderOptimizationAttribute Members.


[Visual Basic]
NotInheritable Public Class LoaderOptimizationAttribute
   Inherits Attribute
public sealed class LoaderOptimizationAttribute : Attribute
public __gc __sealed class LoaderOptimizationAttribute : public
class LoaderOptimizationAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The LoaderOptimizationAttribute can only be set on the main method for an executable application and is ignored on all other methods.

The LoaderOptimizationAttribute attribute is specified with a LoaderOptimization enumeration value, which tells the loader what type of application to optimize for: SingleDomain, MultiDomain, or MultiDomainHost.

This attribute is only a hint to the loader and does not affect program behavior.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

LoaderOptimizationAttribute Members | System Namespace | LoaderOptimization

© 2015 Microsoft