다음을 통해 공유


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

업데이트: 2007년 11월

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

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

<system.net> 
</system.net>

특성 및 요소

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

특성

없음

자식 요소

요소

설명

authenticationModules

인터넷 요청을 인증하는 데 사용되는 모듈을 지정합니다.

connectionManagement

인터넷 호스트에 대한 최대 연결 수를 지정합니다.

defaultProxy

HTTP(Hypertext Transfer Protocol) 프록시 서버를 구성합니다.

mailSettings

SMTP(Simple Mail Transport Protocol) 메일 보내기 옵션을 구성합니다.

requestCaching

네트워크 요청에 대한 캐싱 메커니즘을 제어합니다.

settings

System.Net에 대한 기본 네트워크 옵션을 구성합니다.

<webRequestModules> 요소(네트워크 설정)

인터넷 호스트에서 정보를 요청하는 데 사용할 모듈을 지정합니다.

부모 요소

요소

설명

configuration

모든 네임스페이스에 대한 설정을 포함합니다.

설명

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>

참고 항목

참조

네트워크 설정 스키마