IEventHandler::AddHandler Method (String^)

 

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

Namespace:   Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

int AddHandler(
	String^ bstrEventName
)

Parameters

bstrEventName
Type: System::String^

The name of the handler.

Return Value

Type: System::Int32

S_OK if the method succeeds, otherwise an error code.

Return to top
Show: