Retrieves a collection of custom attributes that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
A collection of the custom attributes that are applied to element, or an empty collection if no such attributes exist.