Share via


Finalize Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Frees resources used by the Socket class.

Namespace:  System.Net.Sockets
Assembly:  System (in System.dll)

Syntax

'Declaration
Protected Overrides Sub Finalize
protected override void Finalize()
protected:
virtual void Finalize() override
abstract Finalize : unit -> unit 
override Finalize : unit -> unit 
protected override function Finalize()

Remarks

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

.NET Framework Security

See Also

Reference

Socket Class

System.Net.Sockets Namespace