Catalyst File Transfer .NET

InternetDialer.Dispose Method (Boolean)

Releases the unmanaged resources allocated by the InternetDialer class and optionally releases the managed resources.

[Visual Basic]
Overridable Overloads Protected Sub Dispose( _
   ByVal disposing As Boolean _
)
[C#]
protected virtual void Dispose(
   bool disposing
);

Parameters

disposing

A boolean value which should be specified as true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

The Dispose method terminates any active connection and explicitly releases the resources allocated for this instance of the class. In some cases, better performance can be achieved if the programmer explicitly releases resources when they are no longer being used. The Dispose method provides explicit control over these resources.

Unlike the Uninitialize method, once the Dispose method has been called, that instance of the class cannot be re-initialized and you should not attempt to access class properties or invoke any methods. Note that this method can be called even if other references to the object are active.

You should call Dispose in your derived class when you are finished using the derived class. The Dispose method leaves the derived class in an unusable state. After calling Dispose, you must release all references to the derived class and the InternetDialer class so the memory they were occupying can be reclaimed by garbage collection.

See Also

InternetDialer Class | SocketTools Namespace | InternetDialer.Dispose Overload List