System.Net.IPEndPoint.Port Property

Gets or sets the port number of the endpoint.

Syntax

public int Port { get; set; }

Value

A int value that is between IPEndPoint.MinPort and IPEndPoint.MaxPort inclusive.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionThe value specified for a set operation was less than IPEndPoint.MinPort or greater than IPEndPoint.MaxPort.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0