ConnectionManagementElement.MaxConnection 屬性

定義

取得或設定可以連接至遠端電腦的最大連線數目。

public:
 property int MaxConnection { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxconnection", DefaultValue=1, IsRequired=true)]
public int MaxConnection { get; set; }
[<System.Configuration.ConfigurationProperty("maxconnection", DefaultValue=1, IsRequired=true)>]
member this.MaxConnection : int with get, set
Public Property MaxConnection As Integer

屬性值

整數,指定最大連線數目。

屬性

備註

此屬性會指定本機電腦與遠端電腦之間允許的同時連線數目。 遠端電腦是使用 Address 屬性來指定。

屬性 MaxConnection 是每個 WebRequest.ConnectionGroupName。 如果應用程式未從預設值變更 WebRequest.ConnectionGroupName ,則 MaxConnection 屬性會套用至整個應用程式域。 如果應用程式中只有單一應用程式域正在執行,則 MaxConnection 屬性設定為全應用程式。

適用於