更新:2007 年 11 月
包含指定 .NET Framework 如何連接至網路的設定。
<configuration> 項目 <system.Net> 項目 (網路設定)
<system.net>
</system.net>
下列小節將說明屬性、子項目和父項目。
屬性
無
子項目
父項目
system.net 項目包含 System.Net 命名空間中的類別的設定。這些設定會設定從網際網路主機接收資訊的驗證模組、連結管理、Proxy 伺服器及網際網路要求模組。
下列程式碼範例顯示 System.Net 類別所使用的一般組態。
<configuration>
<system.net>
<authenticationModules>
<add type = "System.Net.DigestClient" />
<add type = "System.Net.NegotiateClient" />
<add type = "System.Net.KerberosClient" />
<add type = "System.Net.NtlmClient" />
<add type = "System.Net.BasicClient" />
</authenticationModules>
<connectionManagement>
<add address = "*" maxconnection = "2" />
</connectionManagement>
<defaultProxy>
<proxy
usesystemdefault = "true"
bypassonlocal = "true"
/>
</defaultProxy>
<webRequestModules>
<add prefix = "http"
type = "System.Net.HttpRequestCreator"
/>
<add prefix = "https"
type = "System.Net.HttpRequestCreator"
/>
<add prefix = "file"
type = "System.Net.FileWebRequestCreator"
/>
</webRequestModules>
</system.net>
</configuration>
參考