Breyta

Deila með


ComAwareEventInfo.GetAddMethod(Boolean) Method

Definition

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