Package com.ms.com Previous
Previous
Contents
Contents
Index
Index
Next
Next

Class ConnectionPointCookie

Constructor , Methods

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.


Constructor


ConnectionPointCookie

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.

ParameterDescription
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.


Methods


disconnect

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.


finalize

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.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.