IEventHandler.RemoveHandler Method
When implemented by a derived class, removes a named handler from the collection of event handlers.
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 RemoveHandler ( _
bstrEventName As String _
) As Integer
'Utilizzo
Dim instance As IEventHandler
Dim bstrEventName As String
Dim returnValue As Integer
returnValue = instance.RemoveHandler(bstrEventName)
int RemoveHandler(
string bstrEventName
)
int RemoveHandler(
String^ bstrEventName
)
abstract RemoveHandler :
bstrEventName:string -> int
function RemoveHandler(
bstrEventName : String
) : int
Parameters
- bstrEventName
Type: System.String
The name of the event handler to remove.
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.