Udostępnij za pośrednictwem


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.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Declaration
Function HandlesEvent ( _
    bstrEventName As String _
) As Boolean
bool HandlesEvent(
    string bstrEventName
)
bool HandlesEvent(
    String^ bstrEventName
)
abstract HandlesEvent : 
        bstrEventName:string -> bool 
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

Microsoft.VisualStudio Namespace