LoadHint LoadHint LoadHint LoadHint Enum

定义

指定依赖程序集的首选默认绑定。Specifies the preferred default binding for a dependent assembly.

public enum class LoadHint
[System.Serializable]
public enum LoadHint
type LoadHint = 
Public Enum LoadHint
继承
属性

字段

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.

注解

使用带有DependencyAttribute特性DefaultDependencyAttribute和特性的此枚举指定依赖程序集的首选默认绑定。Use this enumeration with the DependencyAttribute attribute and the DefaultDependencyAttribute attribute to specify the preferred default binding for a dependent assembly.

请注意DefaultDependencyAttribute ,该值指示本机生成服务向依赖程序集咨询其首选默认绑定,该绑定是使用Default属性指定的。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.

适用于