Export (0) Print
Expand All

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:
© 2014 Microsoft