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.

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

适用于