IEventHandler.AddHandler(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.