다음을 통해 공유


Binding.BindingInformation 속성

정의

현재 바인딩에 대한 바인딩 정보를 가져오거나 설정합니다.

public:
 property System::String ^ BindingInformation { System::String ^ get(); void set(System::String ^ value); };
public string BindingInformation { get; set; }
member this.BindingInformation : string with get, set
Public Property BindingInformation As String

속성 값

현재 바인딩의 IP 주소, 포트 및 호스트 이름입니다.

예제

다음 예제는 BindingInformation 속성입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 Binding 클래스입니다.

bindingdisplay = bindingdisplay + "  Binding:\n   BindingInformation: " + 
    binding.BindingInformation;

설명

이 속성의 값은 바인딩의 IP 주소, 포트 및 호스트 이름을 포함하는 콜론으로 구분된 문자열입니다. 호스트 이름을 비워 둘 수 있습니다. IP 주소를 "*"로 설정하여 바인딩이 모든 변수에 대해 작동함을 나타낼 수 있습니다.

예를 들어 포트 80의 모든 IP 주소에 대해 설정되고 지정된 호스트 이름이 없는 바인딩은 이 속성에서 "*:80:"을 반환합니다. 포트 8080에서 IP 주소 192.168.1.150에 대해 설정된 바인딩은 "192.168.1.150:8080:"을 반환합니다. "microsoft.com" 호스트에 대해 포트 80의 모든 IP 주소에 대해 설정된 바인딩은 "*:80:microsoft.com"을 반환합니다.

속성 값은 BindingInformation ApplicationHost.config 파일에서 유지 관리됩니다.

적용 대상