ModuleBuilder.IsDefined(Type, Boolean) 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示是否已将指定的特性类型应用于此模块。
public:
 override bool IsDefined(Type ^ attributeType, bool inherit);public override bool IsDefined(Type attributeType, bool inherit);override this.IsDefined : Type * bool -> boolPublic Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean参数
- attributeType
- Type
要测试的自定义属性的类型。
- inherit
- Boolean
对于该类型的对象,将忽略此自变量。
返回
如果一个或多个 attributeType 实例已应用于此模块,则为 true;否则为 false。
例外
              attributeType 为 null。
              attributeType 不是由运行时提供的 Type 对象。 例如,attributeType 是一个 TypeBuilder 对象。