Share via


IEventHandler.AddHandler Method

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

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

Syntax

'Declaration
Function AddHandler ( _
    bstrEventName As String _
) As Integer
int AddHandler(
    string bstrEventName
)
int AddHandler(
    String^ bstrEventName
)
abstract AddHandler : 
        bstrEventName:string -> int
function AddHandler(
    bstrEventName : String
) : int

Parameters

Return Value

Type: System.Int32
S_OK if the method succeeds, otherwise an error code.

.NET Framework Security

See Also

Reference

IEventHandler Interface

Microsoft.VisualStudio Namespace