PerceptionColorFrameSource.FromIdAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds an color frame source by looking up its unique ID.
public:
static IAsyncOperation<PerceptionColorFrameSource ^> ^ FromIdAsync(Platform::String ^ id);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<PerceptionColorFrameSource> FromIdAsync(winrt::hstring const& id);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource.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<PerceptionColorFrameSource> FromIdAsync(winrt::hstring const& id);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PerceptionColorFrameSource> FromIdAsync(string id);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource.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<PerceptionColorFrameSource> FromIdAsync(string id);
function fromIdAsync(id)
Public Shared Function FromIdAsync (id As String) As IAsyncOperation(Of PerceptionColorFrameSource)
Parameters
- id
-
String
Platform::String
winrt::hstring
The unique ID of the color frame source.
Returns
When this method completes, it asynchronously returns a color frame source if one exists with the specified ID. Otherwise, this method asynchronously returns null.
- Attributes
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for