Freigeben über


IEventHandler.AddHandler(String) Method

Definition

When implemented by a derived class, adds a named handler to an event handler collection.

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

Parameters

bstrEventName
String

The name of the handler.

Returns

S_OK if the method succeeds, otherwise an error code.

Applies to