WSDualHttpBinding.BypassProxyOnLocal 속성

정의

프록시 서버를 우회하고 로컬 주소를 대신 사용할지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool BypassProxyOnLocal { bool get(); void set(bool value); };
public bool BypassProxyOnLocal { get; set; }
member this.BypassProxyOnLocal : bool with get, set
Public Property BypassProxyOnLocal As Boolean

속성 값

Boolean

프록시 서버를 우회하고 로컬 주소를 대신 사용하려면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예제

다음 예제에서는 구성 파일에서 wsDualHttpBinding 바인딩을 지정하는 방법을 보여 줍니다.

다음 예제에서는 로컬 리소스에 대해 프록시를 사용하지 않음을 나타내도록 이 속성을 설정합니다.

WSDualHttpBinding BypassProxyOnLocalBinding =
    new WSDualHttpBinding();
BypassProxyOnLocalBinding.BypassProxyOnLocal = true;
Dim BypassProxyOnLocalBinding As New WSDualHttpBinding()
BypassProxyOnLocalBinding.BypassProxyOnLocal = True

이 속성의 값은 구성 파일에서 설정할 수도 있습니다.

설명

주소가 로컬인 인터넷 리소스는 로컬 리소스입니다. 로컬 주소는 동일한 컴퓨터, 로컬 LAN 또는 인트라넷에 있는 주소이며, URI http://webserver/ http://localhost/와 같이 기간(.)이 부족하여 구문적으로 식별됩니다.

BypassProxyOnLocal 속성은 WSDualHttpBinding으로 구성된 엔드포인트가 로컬 리소스에 액세스할 때 프록시 서버를 사용하는지 여부를 결정합니다.

BypassProxyOnLocaltrue이면, 로컬 인터넷 리소스에 대한 요청이 프록시 서버를 사용하지 않습니다. 이 속성이 localhost로 설정된 경우 클라이언트가 동일한 시스템의 서비스와 통신할 때 프록시를 통하게 하려면 true 대신 호스트 이름을 사용합니다.

BypassProxyOnLocalfalse이면, 모든 인터넷 요청이 프록시 서버를 통해 이루어집니다.

적용 대상