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.
System.Object
System.Attribute
System.LoaderOptimizationAttribute
[Visual Basic] <AttributeUsage(AttributeTargets.Method)> NotInheritable Public Class LoaderOptimizationAttribute Inherits Attribute [C#] [AttributeUsage(AttributeTargets.Method)] public sealed class LoaderOptimizationAttribute : Attribute [C++] [AttributeUsage(AttributeTargets::Method)] public __gc __sealed class LoaderOptimizationAttribute : public Attribute [JScript] public AttributeUsage(AttributeTargets.Method) 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.
Remarks
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.
Requirements
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