Schnittstelle IConnectionPoint
- Alle bekannten Implementierungsklassen:
ProxyObject
public interface IConnectionPoint
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungadvise
(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) Set up the comEventCallbackListener to receive callback events from the target COM objectvoid
unadvise
(Class<?> comEventCallbackInterface, IComEventCallbackCookie cookie) Stop listening for callback events
-
Methodendetails
-
advise
IComEventCallbackCookie advise(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) throws COMException Set up the comEventCallbackListener to receive callback events from the target COM object- Parameter:
comEventCallbackInterface
- - the COM interface that the listener will receive events fromcomEventCallbackListener
- - and object that will receive the callback events- Gibt zurück:
- - a cookie that can be used to detach (unadvise) the event callback listener throws COMException if an error occurs trying to set up the listener on the target COM object, see exception cause for details.
- Löst aus:
COMException
-
unadvise
void unadvise(Class<?> comEventCallbackInterface, IComEventCallbackCookie cookie) throws COMException Stop listening for callback events- Parameter:
comEventCallbackInterface
- - the interface that is being listened tocookie
- - the cookie that was returned when advise was called- Löst aus:
COMException
-