DefaultDependencyAttribute Class
Assembly: mscorlib (in mscorlib.dll)
[SerializableAttribute] [AttributeUsageAttribute(AttributeTargets::Assembly)] public ref class DefaultDependencyAttribute sealed : public Attribute
/** @attribute SerializableAttribute() */ /** @attribute AttributeUsageAttribute(AttributeTargets.Assembly) */ public final class DefaultDependencyAttribute extends Attribute
SerializableAttribute AttributeUsageAttribute(AttributeTargets.Assembly) public final class DefaultDependencyAttribute extends Attribute
Not applicable.
This attribute is used by the Native Image Generator (Ngen.exe) to generate native assembly images.
Apply the DefaultDependencyAttribute attribute to a dependent assembly to determine the preferred default binding.
A dependency that is likely to be loaded (Always) will cause Ngen.exe to bind to that dependency. Using this hint allows Ngen.exe to generate code that will result in a reduced working set and improved throughput but at the cost of always loading the dependency when the parent assembly is loaded.
When you apply the DependencyAttribute attribute to an assembly with a value of Default, the native image generation service consults the dependent assembly for its preferred default binding, which is specified by the DefaultDependencyAttribute attribute.
Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.