ClaimedLineDisplay.FromIdAsync(String) 方法

定义

DeviceInformation.Id 创建 LineDisplay 对象。

public:
 static IAsyncOperation<ClaimedLineDisplay ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ClaimedLineDisplay> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ClaimedLineDisplay> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of ClaimedLineDisplay)

参数

deviceId
String

Platform::String

winrt::hstring

标识特定行显示的 DeviceInformation.Id ,可从 DeviceId 属性检索该显示。

返回

由唯一设备标识符指定的行显示。 在以下情况下返回 null 对象:

  • 找不到特定设备。
  • 拒绝访问现有设备。 用户可以拒绝访问设备,这不被视为异常。
属性

适用于