Package com.ms.com |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public class ConnectionPointCookie { // Constructor public ConnectionPointCookie(Object source, Object sink, Class connectionInterface); // Methods public native synchronized void disconnect(); protected void finalize(); }
A class that creates a connection between a source and sink object.
public ConnectionPointCookie(Object source, Object sink, Class connectionInterface);Creates a connection between the source and the sink object by using the IID of the connection interface.
Parameter Description source The source object that is used to make the interface connection. sink The sink object that is used to make the interface connection. connectionInterface The connection interface that is used to connect the source and the sink objects.
public native synchronized void disconnect();Explicitly closes the connection between the source and the sink objects. The connection is closed independently of garbage collection.
Return Value:
No return value.
protected void finalize();Closes the connection between the source and the sink objects through garbage collection when the objects are no longer in processing scope.
Return Value:
No return value.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.