Freigeben über


VirtualTypeImplementor.RemoveEventHandler Method

Removes the given delegate from the given event.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Overridable Sub RemoveEventHandler ( _
    eventInfo As EventInfo, _
    instance As Object, _
    handler As Delegate _
)
'Usage
Dim instance As VirtualTypeImplementor
Dim eventInfo As EventInfo
Dim instance As Object
Dim handler As [Delegate]

instance.RemoveEventHandler(eventInfo, _
    instance, handler)
public virtual void RemoveEventHandler(
    EventInfo eventInfo,
    Object instance,
    Delegate handler
)
public:
virtual void RemoveEventHandler(
    EventInfo^ eventInfo, 
    Object^ instance, 
    Delegate^ handler
)
abstract RemoveEventHandler : 
        eventInfo:EventInfo * 
        instance:Object * 
        handler:Delegate -> unit 
override RemoveEventHandler : 
        eventInfo:EventInfo * 
        instance:Object * 
        handler:Delegate -> unit 
public function RemoveEventHandler(
    eventInfo : EventInfo, 
    instance : Object, 
    handler : Delegate
)

Parameters

  • instance
    Type: System.Object
    The instance on which to remove the event handler. This may be nulla null reference (Nothing in Visual Basic) if the event is static.

Exceptions

Exception Condition
NotImplementedException

If non-abstract derived class did not provide an implementation by overriding this method.

Remarks

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.

.NET Framework Security

See Also

Reference

VirtualTypeImplementor Class

VirtualTypeImplementor Members

Microsoft.VisualStudio.Shell.Design Namespace