ComAwareEventInfo.IsDefined(Type, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.