Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Declaration
Function AddHandler ( _
bstrEventName As String _
) As Integer
'Usage
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
- bstrEventName
Type: System.String
The name of the handler.
Return Value
Type: System.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.