다음을 통해 공유


WSDualHttpBinding.ClientBaseAddress 속성

정의

클라이언트의 기본 주소를 가져오거나 설정합니다.

public:
 property Uri ^ ClientBaseAddress { Uri ^ get(); void set(Uri ^ value); };
public Uri ClientBaseAddress { get; set; }
member this.ClientBaseAddress : Uri with get, set
Public Property ClientBaseAddress As Uri

속성 값

Uri

클라이언트의 기본 주소인 Uri입니다. 기본값은 null입니다.

예제

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

WSDualHttpBinding dualBinding = new WSDualHttpBinding();
EndpointAddress endptadr = new EndpointAddress("http://localhost:12000/DuplexTestUsingCode/Server");
dualBinding.ClientBaseAddress = new Uri("http://localhost:8000/DuplexTestUsingCode/Client/");
Dim dualBinding As New WSDualHttpBinding()
Dim endptadr As New EndpointAddress("http://localhost:12000/DuplexTestUsingCode/Server")
dualBinding.ClientBaseAddress = New Uri("http://localhost:8000/DuplexTestUsingCode/Client/")

설명

이 클라이언트의 공용 URI는 이중 계약일 때 서비스가 클라이언트에 연결하는 데 필요한 콜백 엔드포인트를 제공합니다.

적용 대상