Share via


Port Property

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

Gets or sets the port number of the endpoint.

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

Syntax

'Declaration
Public ReadOnly Property Port As Integer
public int Port { get; }
public:
property int Port {
    int get ();
}
member Port : int with get
function get Port () : int

Property Value

Type: System. . :: . .Int32
An integer value in the range MinPort to MaxPort indicating the port number of the endpoint.

.NET Framework Security

See Also

Reference

IPEndPoint Class

System.Net Namespace