mscorlib 2.0.0.0 4.0.0.0 System.Attribute System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)

This attribute is used by the Native Image Generator (Ngen.exe) to generate native assembly images.

Apply the attribute to a dependent assembly with a value of the enumeration to specify when a referring assembly is to load a dependency.

A dependency that is likely to be loaded () 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.

Indicates when a dependency is to be loaded by the referring assembly. This class cannot be inherited.

- Constructor
  2.0.0.0
  4.0.0.0

  The attribute gives the common language runtime hints on how tightly to bind to the dependency. The runtime uses these hints to help settle tradeoffs between lazy dependency load and efficient binding to the dependency. For example, hard binding allows the runtime to encode pointers to dependent native images, which results in a reduced working set. This attribute guides the runtime in making these decisions.

  Initializes a new instance of the class with the specified value.

  The dependent assembly to bind to.
  One of the values.
- Property
  2.0.0.0
  4.0.0.0
  System.String To be added.

  Use this property to return the name of the assembly that the native image generation service binds to.

  Gets the value of the dependent assembly.

- Property
  2.0.0.0
  4.0.0.0
  System.Runtime.CompilerServices.LoadHint To be added.

  Use this property to return the value of the enumeration used by the attribute.

  Gets the value that indicates when an assembly is to load a dependency.