Retrieves the MethodInfo object for "add" method of the event represented by this instance with the given parameter count and modifier bit map.
[Visual Basic] Overloads MustOverride Public Function GetAddMethod( _ ByVal nonPublic As Boolean _ ) As MethodInfo [C#] public abstract MethodInfo GetAddMethod( bool nonPublic ); [C++] public: virtual MethodInfo* GetAddMethod( bool nonPublic ) = 0; [JScript] public abstract function GetAddMethod( nonPublic : Boolean ) : MethodInfo;
Returns the event subscribe method as a Boolean.
Read-only.
The GetAddMethod initializes and adds the event subscribe method as a Boolean. The "add" method is used to add an even-handler delegate to the invocation list of an event source.
Typically, the method has hte following signature:
public void AddOn<EventName>(<EventHandlerType>hander)
EventInfo Class | EventInfo Members | System.Reflection Namespace | EventInfo.GetAddMethod Overload List | MethodInfo