Share via


IPEndPoint.Port Property

Gets the port number of the current endpoint.

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

Syntax

public int Port { get; }

Property Value

The port number of the current endpoint.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

IPEndPoint Class
IPEndPoint Members
System.Net Namespace