System.Net.Sockets.NetworkStream.Finalize Method

Releases all resources used by the System.Net.Sockets.NetworkStream.

Syntax

void Finalize ()

Remarks

This method overrides object.Finalize. Application code should not call this method; an object's object.Finalize method is automatically invoked during garbage collection, unless finalization by the garbage collector has been disabled by a call to the GC.SuppressFinalize(object) method.

For more information about using the Finalize method, see Finalize Methods and Destructors, Cleaning Up Unmanaged Resources, and Overriding the Finalize Method.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0