PerceptionInfraredFrameSource.FromIdAsync(String) 方法

定义

通过查找红外帧源的唯一 ID 来查找该源。

public:
 static IAsyncOperation<PerceptionInfraredFrameSource ^> ^ FromIdAsync(Platform::String ^ id);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<PerceptionInfraredFrameSource> FromIdAsync(winrt::hstring const& id);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameSource.FromIdAsync may be unavailable after Windows Creator Update.  Use Windows.Devices.Enumeration.DeviceInformation.FromIdAsync instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<PerceptionInfraredFrameSource> FromIdAsync(winrt::hstring const& id);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PerceptionInfraredFrameSource> FromIdAsync(string id);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameSource.FromIdAsync may be unavailable after Windows Creator Update.  Use Windows.Devices.Enumeration.DeviceInformation.FromIdAsync instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<PerceptionInfraredFrameSource> FromIdAsync(string id);
function fromIdAsync(id)
Public Shared Function FromIdAsync (id As String) As IAsyncOperation(Of PerceptionInfraredFrameSource)

参数

id
String

Platform::String

winrt::hstring

红外帧源的唯一 ID。

返回

当该方法完成时,如果存在具有指定 ID 的红外帧源,它将异步返回一个红外帧源。 否则,此方法异步返回 nullptr。

属性

适用于