Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Net.Sockets
  3. TcpListener
  4. Dispose()
  • TcpListener
    • TcpListener(Int32)
    • TcpListener(IPEndPoint)
    • TcpListener(IPAddress, Int32)
    • ~TcpListener()
    • Active
    • ExclusiveAddressUse
    • LocalEndpoint
    • Server
    • AcceptSocket()
    • AcceptSocketAsync()
    • AcceptSocketAsync(CancellationToken)
    • AcceptTcpClient()
    • AcceptTcpClientAsync()
    • AcceptTcpClientAsync(CancellationToken)
    • AllowNatTraversal(Boolean)
    • BeginAcceptSocket(AsyncCallback, Object)
    • BeginAcceptTcpClient(AsyncCallback, Object)
    • Create(Int32)
    • Dispose()
    • EndAcceptSocket(IAsyncResult)
    • EndAcceptTcpClient(IAsyncResult)
    • Pending()
    • Start()
    • Start(Int32)
    • Stop()
    • AcceptSocketAsync(TcpListener)
    • AcceptSocketAsync(TcpListener)
    • AcceptTcpClientAsync(TcpListener)
    • AcceptTcpClientAsync(TcpListener)
net9.0
namespace System.Net.Sockets
{
    public class TcpListener : IDisposable
    {
        public void Dispose();
    }
}
.NET
8.09.0
Information specific to net9.0
Assembly

System.Net.Sockets , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Platform Restrictions

This API is supported on any platform except for these:

  • Browser
  • Built-in API
  • Package-provided API
Search

10/17/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙