VirtualTypeImplementor::RemoveEventHandler Method (EventInfo^, Object^, Delegate^)
Visual Studio 2015
Removes the given delegate from the given event.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
public: virtual void RemoveEventHandler( EventInfo^ eventInfo, Object^ instance, Delegate^ handler )
Parameters
- eventInfo
-
Type:
System.Reflection::EventInfo^
The event to remove the handler from.
- instance
-
Type:
System::Object^
The instance on which to remove the event handler. This may be null if the event is static.
- handler
-
Type:
System::Delegate^
The event handler to remove.
| Exception | Condition |
|---|---|
| NotImplementedException | If non-abstract derived class did not provide an implementation by overriding this method. |
This method attempts to remove the delegate that may synchronize this event on the target object. When an event is raised by target, the method or methods encapsulated by handler will no longer be invoked.
Show: