Returns the method that is called when the event reflected by the current instance is raised, specifying whether the method to
be returned is public or non-public.
[Edit]
Parameters
- nonPublic
- A bool value that specifies whether non-public methods can be returned by this method. Specify true to return non-public methods; otherwise, specify false .
[Edit]
Returns
A System.Reflection.MethodInfo instance that reflects the method that is
called when the event reflected by the current instance is raised, if found;
otherwise, returns null
.
[Edit]
Permissions
Exceptions
Type | Reason |
---|
MethodAccessException | nonPublic is true, the method used to raise the event is non-public, and the caller does not have permission to reflect on non-public methods.
[Edit]
|
Remarks
Requirements
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0