Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventInfo.GetAddMethod Method

Returns the method used to add an event handler delegate to the event source.

Overload List

Returns the method used to add an event handler delegate to the event source.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function GetAddMethod() As MethodInfo
[C#] public MethodInfo GetAddMethod();
[C++] public: MethodInfo* GetAddMethod();
[JScript] public function GetAddMethod() : MethodInfo;

When overridden in a derived class, retrieves the MethodInfo object for the AddEventHandler method of the event, specifying whether to return non-public methods.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Function GetAddMethod(Boolean) As MethodInfo
[C#] public abstract MethodInfo GetAddMethod(bool);
[C++] public: virtual MethodInfo* GetAddMethod(bool) = 0;
[JScript] public abstract function GetAddMethod(Boolean) : MethodInfo;

Example

Typically, the method has the following signature:

add_<EventName>(<EventHandlerType> handler)

See Also

EventInfo Class | EventInfo Members | System.Reflection Namespace

Show:
© 2016 Microsoft