ComAwareEventInfo.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;否则为 false

返回

Boolean

如果已对此成员应用指定特性,则为 true;否则为 false

适用于

另请参阅