Method GetEvent
- Namespace
- Microsoft.Samples.Debugging.CorMetadata
- Assembly
- corapi.dll
GetEvent(string, BindingFlags)
When overridden in a derived class, returns the EventInfo object representing the specified event, using the specified binding constraints.
public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
Parameters
name
stringThe string containing the name of an event which is declared or inherited by the current Type.
bindingAttr
BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.-or- Zero, to return null.
Returns
- EventInfo
The object representing the specified event that is declared or inherited by the current Type, if found; otherwise, null.
Exceptions
- ArgumentNullException
name
is null.