<system.Net> 요소(네트워크 설정)

.NET Framework의 네트워크 연결 방법을 지정하는 설정을 포함합니다.

<configuration>
  <system.net>

구문

<system.net>
</system.net>  

특성 및 요소

다음 섹션에서는 특성, 자식 요소 및 부모 요소에 대해 설명합니다.

특성

없음

자식 요소

요소 설명
authenticationModules 인터넷 요청을 인증하는 데 사용되는 모듈을 지정합니다.
connectionManagement 인터넷 호스트에 대한 최대 연결 수를 지정합니다.
defaultProxy HTTP(Hypertext Transfer Protocol) 프록시 서버를 구성합니다.
mailSettings SMTP(Simple Mail Transport Protocol) 메일 보내기 옵션을 구성합니다.
requestCaching 네트워크 요청에 대한 캐싱 메커니즘을 제어합니다.
설정 System.Net 및 관련 자식 네임스페이스의 클래스에 대한 기본 네트워크 옵션을 구성합니다.
webRequestModules 인터넷 호스트에서 정보를 요청하는 데 사용할 모듈을 지정합니다.

부모 요소

요소 설명
구성 모든 네임스페이스에 대한 설정을 포함합니다.

설명

<system.net> 요소에는 System.Net 및 관련 자식 네임스페이스의 클래스에 대한 설정이 포함됩니다. 설정은 인터넷 호스트에서 정보를 수신하기 위한 인증 모듈, 연결 관리, 메일 설정, 프록시 서버 및 인터넷 요청 모듈을 구성합니다.

예제

다음 예제에서는 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>  

참고 항목