IEventHandler.HandlesEvent Method

When implemented by a derived class, determines whether a named handler is in the event handler collection.

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

Syntax

'Declaration
Function HandlesEvent ( _
    bstrEventName As String _
) As Boolean
'Usage
Dim instance As IEventHandler 
Dim bstrEventName As String 
Dim returnValue As Boolean 

returnValue = instance.HandlesEvent(bstrEventName)
bool HandlesEvent(
    string bstrEventName
)
bool HandlesEvent(
    String^ bstrEventName
)
function HandlesEvent(
    bstrEventName : String
) : boolean

Parameters

  • bstrEventName
    Type: System.String

    The name of the evaluated handler.

Return Value

Type: System.Boolean
true if the handler is in the underlying handler collection, otherwise false.

.NET Framework Security

See Also

Reference

IEventHandler Interface

IEventHandler Members

Microsoft.VisualStudio Namespace