Transport.Destroy

Method

Visual Basic

Overrideable Public Sub Destroy ()

C#

public virtual void Destroy ();

Purpose

Destroy a transport.

Remarks

Programs must explicitly destroy each transport object.

Destroying a transport achieves these effects:

The transport flushes all outbound data to the Rendezvous daemon.

This effect is especially important, and neither exiting the program nor calling Environment.Close is sufficient to flush outbound data.

The transport invalidates (but does not destroy) all associated listeners.

It is illegal to destroy the intra-process transport.