共用方式為


IEventHandler.HandlesEvent(String) Method

Definition

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

public:
 bool HandlesEvent(System::String ^ bstrEventName);
public:
 bool HandlesEvent(Platform::String ^ bstrEventName);
bool HandlesEvent(std::wstring const & bstrEventName);
public bool HandlesEvent (string bstrEventName);
abstract member HandlesEvent : string -> bool
Public Function HandlesEvent (bstrEventName As String) As Boolean

Parameters

bstrEventName
String

The name of the evaluated handler.

Returns

true if the handler is in the underlying handler collection, otherwise false.

Applies to