Edit

Share via


ComAwareEventInfo.IsDefined(Type, Boolean) Method

Definition

Indicates whether one or more instances of the specified attribute are applied to this member.

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

Parameters

attributeType
Type

The attribute type to search for.

inherit
Boolean

true to search this member's inheritance chain to find the attributes; otherwise, false.

Returns

true if the specified attribute has been applied to this member; otherwise, false.

Applies to

See also