MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EndpointPair.RemoteServiceName | remoteServiceName property

Get or set the remote service name for the EndpointPair object.

Syntax


var remoteServiceName = endpointPair.remoteServiceName;
endpointPair.remoteServiceName = remoteServiceName;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The remote service name for the EndpointPair object.

Remarks

The RemoteServiceName property can contain a service name or a TCP or UDP port number for a remote network destination. The remote service name must be supplied for the remote endpoint of the EndpointPair object before a network connection can be established by a client app.

The RemoteServiceName property can be set to one of the following:

  • A numeric literal for a TCP or UDP port number (80 for the TCP port used for http, for example).
  • A string alias for a port number ("http", for example) that matches a string in the following file on the local computer: %WINDIR%\system32\drivers\etc\services
  • A service name that can be resolved by a namespace provider using a SRV record.

It is an error to set the RemoteServiceName property to null.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking
Windows::Networking [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking
Windows::Networking [C++]

Metadata

Windows.winmd

See also

EndpointPair
Windows.Networking

 

 

Show:
© 2016 Microsoft