語言

NetPeerTcpBindingElement.Port 屬性

定義

取得或設定此綁定將處理對等通道 TCP 訊息的網路介面埠。

public:
 property int Port { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("port", DefaultValue=0)]
[System.Configuration.IntegerValidator(MaxValue=65535, MinValue=0)]
public int Port { get; set; }
[<System.Configuration.ConfigurationProperty("port", DefaultValue=0)>]
[<System.Configuration.IntegerValidator(MaxValue=65535, MinValue=0)>]
member this.Port : int with get, set
Public Property Port As Integer

屬性值

Int32 該綁定指定了此綁定將處理對等通道 TCP 訊息的網路埠。

屬性

適用於