Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.com   Previous This
Package
Next

 


Class ConnectionPointCookie

public class ConnectionPointCookie
{
  // Constructors
  public ConnectionPointCookie(Object source, Object sink,
        Class connectionInterface);

  // Methods
  public native synchronized void disconnect();
  protected void finalize();
}

This class provides methods for creating and closing a connection between a source and a sink object.

Constructors

ConnectionPointCookie

public ConnectionPointCookie(Object source, Object sink,
        Class connectionInterface);

Creates a connection between the source and the sink object by using the connection interface identifier (IID).

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 the garbage collection process.

Return Value:

No return value.

finalize

protected void finalize();

Closes the connection between the source and the sink objects by calling the ConnectionPointCookie object's disconnect method. When the object is no longer in processing scope, the Microsoft Win32 VM for Java ensures that appropriate cleanup occurs by calling this method.

Return Value:

No return value.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.