DialReceiverApp.GetUniqueDeviceNameAsync 方法

定义

异步获取 DIAL 服务器设备的唯一设备名称。

public:
 virtual IAsyncOperation<Platform::String ^> ^ GetUniqueDeviceNameAsync() = GetUniqueDeviceNameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> GetUniqueDeviceNameAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> GetUniqueDeviceNameAsync();
function getUniqueDeviceNameAsync()
Public Function GetUniqueDeviceNameAsync () As IAsyncOperation(Of String)

返回

IAsyncOperation<String>

在完成时返回字符串的异步操作。

属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

适用于