Condividi tramite


IEventHandler.AddHandler Method

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

Namespace:  Microsoft.VisualStudio
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Dichiarazione
Function AddHandler ( _
    bstrEventName As String _
) As Integer
'Utilizzo
Dim instance As IEventHandler
Dim bstrEventName As String
Dim returnValue As Integer

returnValue = instance.AddHandler(bstrEventName)
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

IEventHandler Members

Microsoft.VisualStudio Namespace