ComAwareEventInfo.GetAddMethod(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the method that was used to add an event handler delegate to the event source.
public:
override System::Reflection::MethodInfo ^ GetAddMethod(bool nonPublic);
public override System.Reflection.MethodInfo? GetAddMethod (bool nonPublic);
public override System.Reflection.MethodInfo GetAddMethod (bool nonPublic);
override this.GetAddMethod : bool -> System.Reflection.MethodInfo
Public Overrides Function GetAddMethod (nonPublic As Boolean) As MethodInfo
Parameters
- nonPublic
- Boolean
true
to return non-public methods; otherwise, false
.
Returns
The method that was used to add an event handler delegate to the event source.
Exceptions
nonPublic
is true
and the method used to add an event handler delegate is non-public, but the caller does not have permission to reflect on non-public methods.
Remarks
This method calls the EventInfo.GetAddMethod method.