EndpointPair.RemoteServiceName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get or set the remote service name for the EndpointPair object.
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
Property Value
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.