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.GetRemoveMethod Method

Returns the method used to remove an event handler delegate from the event source.

Overload List

Returns the method used to remove an event handler delegate from the event source.

Supported by the .NET Compact Framework.

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

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

Supported by the .NET Compact Framework.

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

Example

Typically, the method has the following signature:

remove_<EventName>(<EventHandlerType> handler)

See Also

EventInfo Class | EventInfo Members | System.Reflection Namespace

Show:
© 2015 Microsoft