Redigera

Dela via


PeerNameRegistration.Port Property

Definition

Gets or sets the TCP/IP port number used by the peer being registered into the PeerNameRegistration object.

public:
 property int Port { int get(); void set(int value); };
public int Port { get; set; }
member this.Port : int with get, set
Public Property Port As Integer

Property Value

An integer value indicating the TCP port number of the IPEndPoint. Unless explicitly specified, the default value for this property is zero (0).

Exceptions

The specified port value is less than zero. Port numbers must be greater than or equal to zero and less than 65,535 (0xFFFF).

Remarks

The default port is used by the Start method only when no endpoints are specified.

Applies to

See also