Compartilhar via


PerceptionDepthFrameSource.FromIdAsync(String) Método

Definição

Localiza uma fonte de quadro de profundidade pesquisando sua ID exclusiva.

public:
 static IAsyncOperation<PerceptionDepthFrameSource ^> ^ FromIdAsync(Platform::String ^ id);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<PerceptionDepthFrameSource> FromIdAsync(winrt::hstring const& id);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource.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<PerceptionDepthFrameSource> FromIdAsync(winrt::hstring const& id);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PerceptionDepthFrameSource> FromIdAsync(string id);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource.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<PerceptionDepthFrameSource> FromIdAsync(string id);
function fromIdAsync(id)
Public Shared Function FromIdAsync (id As String) As IAsyncOperation(Of PerceptionDepthFrameSource)

Parâmetros

id
String

Platform::String

winrt::hstring

A ID exclusiva da origem do quadro de profundidade.

Retornos

Quando esse método for concluído, ele retornará de forma assíncrona uma fonte de quadro de profundidade se houver uma com a ID especificada. Caso contrário, esse método retorna de forma assíncrona nulo.

Atributos

Aplica-se a