Indicates whether custom attributes of a specified type are applied to a specified parameter, and, optionally, applied to its ancestors.
element The parameter to inspect.attributeType The type of 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.