Unbinds the specified object from the event, so that the object stops being called whenever the event fires.
Syntax
HRESULT detachEvent( BSTR sEvent, IDispatch *pIDisp );
Parameters
- sEvent
- String (BSTR) variable that specifies the name of the event.
- pIDisp
- Address of the IDispatch interface previously set using the attachEvent method.
Return Value
Returns S_OK if the function was bound successfully, or an error code otherwise.
See Also