Share via


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

傳回

如果已將指定屬性套用至此成員,則為 true,否則為 false

適用於

另請參閱