ConnectionOrientedTransportBindingElement.MaxPendingConnections 屬性

定義

取得或設定服務上等待分派之連線的數目上限。

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

屬性值

服務上等待分派之傳入連線的數目上限。 預設值為 12 * 個處理器數目。

例外狀況

這個值小於或等於零。

備註

這個屬性控制傳輸已接受但未經 ServiceModel 發送器擷取的連接數量。 若要設定這個值,請使用繫結上的 MaxConnections 或繫結項目上的 maxOutboundConnectionsPerEndpoint

當堆疊中較高層呼叫 AcceptDispatch 時,該連線就會從等待分派的連線佇列中移除。

適用於