Share via


IEventHandler.RemoveHandler Method

When implemented by a derived class, removes a named handler from the collection of event handlers.

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

Syntax

int RemoveHandler(
    string bstrEventName
)

Parameters

  • bstrEventName
    Type: System.String

    The name of the event handler to remove.

Return Value

Type: System.Int32
S_OK if the method succeeds, otherwise an error code.

.NET Framework Security

See Also

Reference

IEventHandler Interface

Microsoft.VisualStudio Namespace