PeerNameRegistration::Port Property
.NET Framework (current version)
Gets or sets the TCP/IP port number used by the peer being registered into the PeerNameRegistration object.
Assembly: System.Net (in System.Net.dll)
Property Value
Type: System::Int32An integer value indicating the TCP port number of the IPEndPoint. Unless explicitly specified, the default value for this property is zero (0).
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The specified port value is less than zero. Port numbers must be greater than or equal to zero and less than 65,535 (0xFFFF). |
.NET Framework
Available since 3.5
Available since 3.5
Show: