_Type.GetEvents Method (BindingFlags)
.NET Framework (current version)
Provides COM objects with version-independent access to the Type.GetEvents method.
mscorlib (in mscorlib.dll)
Function GetEvents (
bindingAttr As BindingFlags
) As EventInfo()
An array of EventInfo objects representing all events that are declared or inherited by the current Type that match the specified binding constraints.
An empty array of type EventInfo, if the current Type does not have events, or if none of the events match the binding constraints.
This method is for access to managed classes from unmanaged code, and should not be called from managed code.
The Type.GetEvents method searches for events that are declared or inherited by the current Type, using the specified binding constraints.
Return to top
Available since 1.1