Assembly: mscorlib (in mscorlib.dll)
'Declaration <AttributeUsageAttribute(AttributeTargets.Method)> _ <ComVisibleAttribute(True)> _ Public NotInheritable Class LoaderOptimizationAttribute Inherits Attribute 'Usage Dim instance As LoaderOptimizationAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Method) */ /** @attribute ComVisibleAttribute(true) */ public final class LoaderOptimizationAttribute extends Attribute
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.
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.
Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.