ComAwareEventInfo.GetAddMethod(Boolean) Metod

Definition

Hämtar den metod som användes för att lägga till ett händelsehanterardelegat till händelsekällan.

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

Parametrar

nonPublic
Boolean

trueatt returnera icke-offentliga metoder. annars . false

Returer

Den metod som användes för att lägga till ett händelsehanterardelegat till händelsekällan.

Undantag

nonPublic är true och metoden som används för att lägga till ett händelsehanterardelegat är icke-offentlig, men anroparen har inte behörighet att reflektera över icke-offentliga metoder.

Kommentarer

Den här metoden anropar EventInfo.GetAddMethod metoden.

Gäller för