ModuleBuilder.IsDefined(Type, Boolean) 方法

定义

返回一个值,该值指示指定的属性类型是否已应用于此模块。

public:
 override bool IsDefined(Type ^ attributeType, bool inherit);
public override bool IsDefined(Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

参数

attributeType
Type

要测试的自定义属性的类型。

inherit
Boolean

对于此类型的对象,忽略此参数。

返回

如果已将一个或多个实例 应用于此模块,则为 ;否则为 < a1/>

例外

attributeTypenull

attributeType 不是 Type 运行时提供的对象。 例如, attributeType 是一个 TypeBuilder 对象。

适用于