EndpointPair.RemoteServiceName 속성

정의

EndpointPair 개체의 원격 서비스 이름을 얻거나 설정합니다.

public:
 property Platform::String ^ RemoteServiceName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring RemoteServiceName();

void RemoteServiceName(winrt::hstring value);
public string RemoteServiceName { get; set; }
var string = endpointPair.remoteServiceName;
endpointPair.remoteServiceName = string;
Public Property RemoteServiceName As String

속성 값

String

Platform::String

winrt::hstring

EndpointPair 개체의 원격 서비스 이름입니다.

설명

RemoteServiceName 속성은 원격 네트워크 대상에 대한 서비스 이름 또는 TCP 또는 UDP 포트 번호를 포함할 수 있습니다. 클라이언트 앱에서 네트워크 연결을 설정하려면 EndpointPair 개체의 원격 엔드포인트에 대해 원격 서비스 이름을 제공해야 합니다.

RemoteServiceName 속성은 다음 중 하나로 설정할 수 있습니다.

  • TCP 또는 UDP 포트 번호의 숫자 리터럴입니다(예: http에 사용되는 TCP 포트의 경우 80).
  • 로컬 컴퓨터의 다음 파일에서 문자열과 일치하는 포트 번호(예: %WINDIR%\system32\drivers\etc\services)에 대한 문자열 별칭입니다.
  • SRV 레코드를 사용하여 네임스페이스 공급자가 확인할 수 있는 서비스 이름입니다. RemoteServiceName 속성을 null로 설정하는 것은 오류입니다.

적용 대상

추가 정보