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