Click or drag to resize
TypeGetEvents Method (BindingFlags)
When overridden in a derived class, searches for events that are declared or inherited by the current Type, using the specified binding constraints.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public abstract EventInfo[] GetEvents(
	BindingFlags bindingAttr
)

Parameters

bindingAttr
Type: System.ReflectionBindingFlags
A bitmask comprised of one or more BindingFlags that specify how the search is conducted.-or- Zero, to return null.

Return Value

Type: EventInfo
An array of EventInfo objects representing all events that are declared or inherited by the current Type that match the specified binding constraints.-or- An empty array of type EventInfo, if the current Type does not have events, or if none of the events match the binding constraints.
See Also