TypeBuilder::GetEvents Method (BindingFlags)
Returns the public and non-public events that are declared by this type.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- bindingAttr
-
Type:
System.Reflection::BindingFlags
A bitwise combination of BindingFlags values that limits the search.
Return Value
Type: array<System.Reflection::EventInfo^>^Returns an array of EventInfo objects representing the events declared or inherited by this type that match the specified binding flags. An empty array is returned if there are no matching events.
Implements
_Type::GetEvents(BindingFlags)| Exception | Condition |
|---|---|
| NotSupportedException | This method is not implemented for incomplete types. |
Retrieve the type using Type::GetType or Assembly::GetType and use reflection on the retrieved type.
Available since 1.1
Silverlight
Available since 2.0