Compartilhar 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.12.0 (in Microsoft.VisualStudio.Shell.12.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

  • bstrEventName
    Type: String

    The name of the handler.

Return Value

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

.NET Framework Security

See Also

Reference

IEventHandler Interface

Microsoft.VisualStudio Namespace