Method IsDefined
- Namespace
- Microsoft.Samples.Debugging.CorMetadata
- Assembly
- corapi.dll
IsDefined(Type, bool)
When overridden in a derived class, indicates whether one or more attributes of the specified type or of its derived types is applied to this member.
public override bool IsDefined(Type attributeType, bool inherit)
Parameters
attributeType
TypeThe type of custom attribute to search for. The search includes derived types.
inherit
booltrue to search this member's inheritance chain to find the attributes; otherwise, false. This parameter is ignored for properties and events; see Remarks.
Returns
- bool
true if one or more instances of
attributeType
or any of its derived types is applied to this member; otherwise, false.