Udostępnij za pośrednictwem


IEventHandler.RemoveHandler(String) Method

Definition

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

public:
 int RemoveHandler(System::String ^ bstrEventName);
public:
 int RemoveHandler(Platform::String ^ bstrEventName);
int RemoveHandler(std::wstring const & bstrEventName);
public int RemoveHandler (string bstrEventName);
abstract member RemoveHandler : string -> int
Public Function RemoveHandler (bstrEventName As String) As Integer

Parameters

bstrEventName
String

The name of the event handler to remove.

Returns

S_OK if the method succeeds, otherwise an error code.

Applies to