AssemblyBuilder.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

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

返回

true 如果一个或多个实例 attributeType 应用于此动态程序集,则为 ;否则为 false

适用于