Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors.
element The member to inspect.attributeType The type of the attribute to search for.inherit true to inspect the ancestors of element; otherwise, false.
true if an attribute of the specified type is applied to element; otherwise, false.