<connectionManagement> 元素(網路設定)

指定與網路主機的最大連線數。

<configuration>
  <system.net>
    <connectionManagement>

語法

<connectionManagement>
</connectionManagement>

屬性和項目

下列章節說明屬性、子元素和父元素。

Attributes

沒有。

子元素

元素 說明
add 在連線管理清單中新增 IP 位址或 DNS 名稱。
清除 清除連線管理清單。
remove 從連線管理清單中移除 IP 位址或 DNS 名稱。

父項目

元素 說明
system.net 包含指定 .NET Framework 如何連接網路的設定。

備註

該 connectionManagement 元素定義了伺服器或伺服器群組的最大連線次數。

組態檔

此元素可用於應用程式設定檔或機器設定檔(Machine.config)。

Example

以下範例設定應用程式使用四條連線至伺服器 www.contoso.com 及兩條連接至所有其他伺服器。

<configuration>
  <system.net>
    <connectionManagement>
      <add address = "http://www.contoso.com" maxconnection = "4" />
      <add address = "*" maxconnection = "2" />
    </connectionManagement>
  </system.net>
</configuration>

另請參閱