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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor