LoadHint LoadHint LoadHint LoadHint Enum

Definition

Specifies the preferred default binding for a dependent assembly.

public enum class LoadHint
[Serializable]
public enum LoadHint
type LoadHint = 
Public Enum LoadHint
Inheritance
Attributes
SerializableAttribute

Fields

Always Always Always Always 1

The dependency is always loaded.

Default Default Default Default 0

No preference specified.

Sometimes Sometimes Sometimes Sometimes 2

The dependency is sometimes loaded.

Remarks

Use this enumeration with the DependencyAttribute attribute and the DefaultDependencyAttribute attribute to specify the preferred default binding for a dependent assembly.

Note that the Default value directs the native generation service to consult the dependent assembly for its preferred default binding, which is specified using the DefaultDependencyAttribute attribute. Very few assemblies should need to specify a default value in this manner.

Applies to