PeerInformation.ServiceName 属性

定义

获取对等方的服务名称或 TCP 端口号。

public:
 property Platform::String ^ ServiceName { Platform::String ^ get(); };
winrt::hstring ServiceName();
public string ServiceName { get; }
var string = peerInformation.serviceName;
Public ReadOnly Property ServiceName As String

属性值

String

Platform::String

winrt::hstring

对等方的服务名称或 TCP 端口号。

Windows 要求

应用功能
proximity

适用于