Share via


PeerTransportElement.Port プロパティ

定義

ピア トランスポート バインディングのポートを指定する構成要素を取得または設定します。

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

ピア トランスポート バインディングのポートを指定する Int32 値。

属性

注釈

ポートが無効な場合は、ArgumentException が発生します。 このプロパティの既定値は 0 です。これは、予約されていないすべてのポートからランダムにリスナー ポートが選択されることを示します。

適用対象