Export (0) Print
Expand All

Socket.Finalize Method

Frees resources used by the Socket class.

[C#] In C#, finalizers are expressed using destructor syntax.

[C++] In C++, finalizers are expressed using destructor syntax.

[Visual Basic]
Overrides Protected Sub Finalize()
[C#]
~Socket();
[C++]
~Socket();
[JScript]
protected override function Finalize();

Remarks

The Socket class finalizer calls the Close method to close the Socket and free resources associated with the Socket.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Socket Class | Socket Members | System.Net.Sockets Namespace

Show:
© 2014 Microsoft