Share via


TcpConnectionPoolSettingsElement.MaxOutboundConnectionsPerEndpoint 屬性

定義

取得或設定與服務初始化之遠端端點連線的數目上限。

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

屬性值

與服務所初始化遠端端點連線的最大數目。 預設值為 10。

屬性

備註

超過這個限制的連線都會進入佇列,直到低於此限制的空間可用為止。 這個屬性會限制在擲回例外狀況之前,連線保留在佇列中的持續期間。

這個屬性會限制從用戶端到特定服務端點的同時作用中連線數目。 如果因為擁有更多個作用中的用戶端連線而超出這個值,對用戶端而言,服務可能會像是沒有回應。 在這種情況下,這個值應調整為超過預期的、用戶端對特定端點之同時連線的數目上限。

適用於