Returns a bool value indicating whether a specified custom attribute is present in the metadata for the specified member.
- element
- An instance of a type derived from System.Reflection.MemberInfo that describes a type member.
- attributeType
- The Type of the custom attribute for which to check.
true if a custom attribute of type attributeType is applied to element either directly or through inheritance; otherwise, false.
Type Reason ArgumentNullException element or attributeType is null. ArgumentException attributeType is not derived from Attribute. NotSupportedException element is not a constructor, method, property, event, type, or field.
Documentation for this section has not yet been entered.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0