System.ComponentModel.TypeDescriptor.GetEvents C# (CSharp) Method

GetEvents() public static method

Gets a collection of events for a specified component using a specified array of attributes as a filter.
public static GetEvents ( object component, Attribute attributes ) : EventDescriptorCollection
component object
attributes System.Attribute
return EventDescriptorCollection
        public static EventDescriptorCollection GetEvents(object component, Attribute[] attributes)
        {
            return GetEvents(component, attributes, false);
        }

Same methods

TypeDescriptor::GetEvents ( Type componentType ) : EventDescriptorCollection
TypeDescriptor::GetEvents ( Type componentType, Attribute attributes ) : EventDescriptorCollection
TypeDescriptor::GetEvents ( object component ) : EventDescriptorCollection
TypeDescriptor::GetEvents ( object component, Attribute attributes, bool noCustomTypeDesc ) : EventDescriptorCollection
TypeDescriptor::GetEvents ( object component, bool noCustomTypeDesc ) : EventDescriptorCollection

Usage Example

Example #1
0
 public EventDescriptorCollection GetEvents(Attribute[] attributes) => NativeTypeDesc.GetEvents(attributes, true);
All Usage Examples Of System.ComponentModel.TypeDescriptor::GetEvents