Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.