共用方式為


DefaultPortElement.Port 屬性

定義

取得或設定預設的通訊連接埠編號。

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

屬性值

Int32

通訊連接埠。

屬性

適用於